all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

MovieClip Buttons won't work


MovieClip Buttons won't work bojamels
2/13/2004 9:12:24 PM
flash actionscript:
I have a very simple movie clip - one frame which contains several buttons
(it's a sub-menu). When this clip is placed on the stage, it works perfectly.
When I use ActionScript to make the movie clip visible with the rollOver of a
seperate button, the clip appears, but it's buttons don't work. This code is on
the first frame of my fla file

stop()

subServices._visible = false

subServices.onRollOver = btnServices.onRollOver = function()
subServices._visible = true


subServices.onRollOut = btnServices.onRollOut = function()
subServices._visible = false


Any ideas as to what I'm doing wrong

Thanks
Re: MovieClip Buttons won't work ovydiu
2/13/2004 10:24:32 PM
from what i understand, in the first case, the submenu is placed in _root and
in the second case in _root.moviecli
maybe that's your problem. you should check any other ascionscripts you used
in your movi
Re: MovieClip Buttons won't work pazzoboy
2/14/2004 5:20:29 AM
Okay, you have a button that, when rolled over, causes your submenu to appear.
Now, if you rollOut of the button, your submenu should disappear, yeah? So how
can you test your submenu? The second you leave the button, the submenu's
gone? Do you have an invisible button or something on top of your first button
and maybe the submenu? If so, then you're clicking the invisible button, not a
submenu item....and if the only action on that button is the rollOver, then
nothing will happen when you click it, eh
AddThis Social Bookmark Button