![]() |
Flash help
I am making a drop down menu in flash.
I have a small movie clip with the actionscript: Code:
on(rollOver){ This works fine, but when I try and add a button to the menu, it will either be unclickable (if inside the movie clip) or it will flip out, if it is laid on top of the clip. Take a look Any help would be much appreciated. |
Are you using an invisible button on the stopped frame only? Are there any actions in the frames other than the button? Have you thought about using the hitTest action?
|
What you've done so far actually looks really cool - nice job.
|
Well guys, I took the rollOut code off and put an invisible button around the the menu that makes the menu disappear on rollOver, and it seemed to do the trick.
Ultimate_Goham - I tried the hitTest thing, and couldn't really get it working. I'm an amateur with the actionscript. I might pick up an actionscript book, got any suggestions? |
Flash help...
What you've done works well until you place another button in the movie and then the rollOver & rollOut commands get confused...
I found from bitter experience that you need to assigned a variable (in my version: VariableNamedWhatever) to make this work: ---Code for the Invisible button--- on (rollOver) { VariableNamedWhatever = "1"; tellTarget ("over") { play(); } } on (rollOut) { VariableNamedWhatever = "2"; gotoAndPlay(3); tellTarget ("out") { stop(); } } ---Code for Frame 3--- if (Number(VariableNamedWhatever) == 1) { tellTarget ("over") { play (); } } Hope this helps...? |
Why didnt I think of that *smacks head*
Thanks Stug, that will definitely come in handy for the next time. |
You could do what stug said, I just thought that using a blank movie clip or any movie clip that would trigger the animation. I could go into it more if you like or just use what stug said. That works to.
|
All times are GMT -8. The time now is 02:26 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project