-
Button movie
quick question:
if I make a button adn drop it inside a movie (so i can use various instances of it, using vars to load the button text) when the rollover effect stops once i click the button.
i guess this is a behaviour of the movie but i'm not sure what i need to do to get around this...
cheers
:)
-
try to just use a movieclip instead of type button. You can assign onRelease, onRollOut functions to movieclips with instance names. So you can have one generic btnMc , that has multiple instance names with different event handlers.
btnOneMc.onRelease = function():Void{
getURL(crap);
}
or
btnOneMc.onRelease = mx.utils.Delegate.create(this,releaseFunc);
function releaseFunc():Void{
do something
}
-
awesome
thanks a lot! that's great to know :)