PDA

View Full Version : So the stop script doesn't even seem to work



mojojojo
September 26th, 2007, 10:29 PM
I have not used flash in quite some time, so I am rusty, but I can't seem to get the time line to stop, play a MC and come back to continue along the main line.

This is on the main time line, on the first frame:
stop();
scratch_mc.play();

On the last frame of the MC is:
stop();
_root.play(2);

On export, I get an error message saying that the root command is wrong.

I test it out never-the-less and the following happens.

The MC shows it's first frame, but immediately the MC stops and the main time line continues. I double checked, and the AS is on a new/the last keyframe of the MC.

Thanks.

sepu
September 26th, 2007, 10:39 PM
are u doing this in AS3 ? if so _root wont work ...

mojojojo
September 27th, 2007, 10:34 AM
Yes I am.

What replaces _root?

I just switched to AS2. Thanks.

hamster888
September 28th, 2007, 11:58 PM
root is the new _root. In AS3, just about every underscore (_) has been removed, _width is width, _x is x,