This content has been marked as final. Show 8 replies
you must initiate a loop and continually check if the _currentframe is 26. use the double equall (==) in your conditional statement.
In an addition to what kgald has stated you can nest that IF statement inside an onEnterFrame function.
onEnterFrame = function ()
if(_root.MYMC._currentframe == 26)
Just make sure you delete the onEnterFrame function when it is no longer needed.
Yes, I need to do that, but other then that it's working. How can I delete the function?
the delete onEnterFrame statement does that.
onEnterFrame = null;
"tay shk" <email@example.com> wrote in message
> onEnterFrame = null;
Well that's cool and all, thank you. I really need this because it's not working, could you please tell me where I'm supposed to place this actionscript?
I have multiple buttons with that ActionScript and it works, but when I press the first one, it passes a function, and then I try to do a second button and it uses the first function because, I'm guessing, it hasn't cleared it out before passing the new one. Where do I put the piece of AS you've suggested?