Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : [Help! Quick!] Scenes and movieclips.


Simon Jakobsson
5/23/2004 4:24:57 PM
The topic name because i got a deadline on thursday.
The situation are following: I'm in a movieclip in "Scene 2". In the movieclip
there is first an animation of 30 frames then on the 31 frame i want the movie
to jump to Scene 2, frame 2, so I did some actionscript myself, but with no
luck.

The actionscript i did was:
gotoAndPlay("Scene 2", 2)
The result was the movie played my movieclip from frame two, not the scene.

Any suggestion or is it impossible?.
thx in advance// Simon
XFlashmanX
5/23/2004 4:44:27 PM
If you are allready in 'scene 2', you do not need to go to "scene 2". just go to the specific frame. Or do you want to go to scene 1? Then, write
gotoAndPlay("Scene1", 2);
kglad
5/23/2004 5:03:52 PM
Jack.
5/23/2004 5:04:01 PM
1 - add a path to take you back to the main timeline - _root
2 - for reliable navigation use frame labels
3 - do NOT use Scene names, they fail from movieclips

_root.gotoAndPlay("a_frame_label");

hth
Simon Jakobsson
5/23/2004 5:34:47 PM
AddThis Social Bookmark Button