-
AS2 problem with buttons
Hi, a very n00b question but now I'm making a interactive animation.
in the roo I have a frame with a movie clip with instance name of "pascal"... inside it has another animation that end with a stop in frame 37...
outside again in the root in frame 17 I have another moviclip with an animation that stops in frame 17 and have a button, if pressed it should take you to "pascal" movieclip in frame 37...
what i have right now in this button is
on(release){
_root.pascal.gotoAndPlay(37);
}
I Also tried with pascal.gotoAndPlay(37); and this._root.pascal.gotoAndPlay(37);
but nothing seems to work.... any help would be much appreciated!..
thanks!
-
It seems that you need to go to frame 37 on the root timeline and then have the "pascal" clip play from there.
so it should be something like this:
Code:
on(release){
_root.gotoAndPlay(37);
_root.pascal.play(); // If "pascal" has a stop action on first frame, else not needed
}
-
Thanks Steven FN, sadly that code didn't work.... but I resolved with alphas.... since I could not remove the MC that I didn't wanted then I just covered it in alpha. But thank you anyways for the response
=3