A
A
Alexander Sharomet2014-02-28 12:26:34
Programming
Alexander Sharomet, 2014-02-28 12:26:34

Actionscript 3.0: How to run the next frame on the stage from the movie?

Hello. I encountered such a problem:
I have a video on the stage and only 2 frames the second one has the name "k2", in the video there is a script, when launched on the main stage, the scale should go to the second frame "k2"
The video says
gotoAndStop("k2" );
and tried
MovieClip(root).gotoAndStop("k2");
but it doesn't work because I need it to go to the next frame not in the movie but on the main stage.
How can this problem be solved? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tyrex, 2014-03-06
@sharomet

MovieClip( _root ).gotoAndStop("k2");
or
_root .gotoAndStop("k2");
The underscore in _root is important.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question