-
Button inside Movieclip cannot control main timeline
I come accross a reoccuring problem, where a button nested inside a movieclip cannot control the main timeline, in terms of skipping to certain scenes or frames. I've tried
_root.gotoAndPlay("Scene2");
_level0.gotoAndPlay("Scene2");
but this action doesn't seem to affect the main timeline. Does anyone know how to select the main timeline as the object?
Kind Regards,
Scott Lahney
--
James Cook University
Townsville, Australia
-
try to use
_root.gotoAndPlay("Scene2", 1);
or make a label in Scene2 and call the label
-
No luck I'm afraid, I tried both
_level0.gotoAndPlay("Scene 2", 1);
_root.gotoAndPlay("Scene 2", 1);
and after adding a frame lable called "here" in scene 2 tried
_level0.gotoAndPlay("Scene 2", "here");
_root.gotoAndPlay("Scene 2", "here");
The only way I can find to work around this is to create a function back on the main timeline, and call this from the button.
Kind Regards,
Scott Lahney
--
James Cook University
Townsville, Australia
-
code: _root.gotoAndPlay("here");
-
If I were Scott I woudn't understand that Solo!
Scott check my post in this thread for an explanation:
http://www.flashkit.com/board/showth...hreadid=458816
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|