Hey 3D. I am very tired right now and I have never made one of these before, so my example is probably less than efficient, and I can’t even really explain well what I did.
Basically though…
I created a button, but I didn’t make it a button symbol, I made it a movie clip symbol.
Inside that movie clip symbol I have 3 layers.
1 is the main button
Another is the mask shape
And the last is the tween of the menu down clip.
The menu down clip is the clip that contains the buttons and background for your drop down.
My last step was to go back to the main timeline and selected the button and applied actions to it.
I know MX can use on handler on movie clips, but I found that using hitTest worked better, so I used this code…
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.play();
if (this._currentframe == 10) {
stop();
}
} else if (this._currentframe>=10) {
play();
}
}
It checks if the mouse is over it, and if it is, it plays the tween down of the menu down clip to frame 10 (supposing frame 10 is the last frame of your tween down) and then it says if the mouse is not off of it and the frame is >= to 10, then play the tween again so that it plays out.
I attached a sample, hopefully that helps. I am off to bed soon :sleep:
That’s very sexy, Shane… Mind if I use your coding idea to write a tut? It seems Kirupa is lacking the popular drop down tut… By the way… I have been looking at your site… Love it, and the porfolio… I posted this question someplace else, but I forgot where, and don’t know if you saw it…
All my code is open source take it and do whatever you want with it
And yeah, I answered your question in the urgent help thread, but I will answer it again…
I use Photoshop 6 for some of my early ones (as my portfolio is full of images dating from the day I started Photoshop to now) and my newer ones use Photoshop 7.
I don’t have any other design programs other than Flash, which isn’t really design persay.
that is exactly what I was looking for. Thanks a bunch L.I.B. Hey do you know anything about smartclips and how to make them. Some dude was telling me I should make that a smart clip. I know nothing of smartclips but I can research when I get home. But I was curious if you go give a primer on them…or anyone else for that matter.