My movie has a total of 10 scenes. The "intro" scene is the main timeline. I'm trying to target a button from within a movie clip onto diffrent scene. How can I do this?
This is the code I have applyed to my button inside the movie clip:
on (release) {
tellTarget ("_level0/") {
gotoAndPlay ("implementation guides", 1);
}
}
Implementation Guides is the name of one of my 10 scenes. and it doesn't work.
One weird thing with Flash is that you can't change scene while in movie clip... a simple way to go around this is to put Stop() to last frame of the main time line, add a keyframe after it (in frame 600 for example), and then have the action to change scene in that frame.
Then, when you want to change scene, just go for: _root.gotoAndPlay(600);
I always place a label on the opening frame of the scene that I am referencing that is the same as the scene name. Flash sometimes has problems correctly referencing frames, scenes etc and I find that a Frame label "Scene 2" on Frame 1 of Scene 2 for example works fine.
The _root.Test variable is to check that the button works okay. This is useful as the button may work and the gotoAndPlay command may not. You can then make sure that your Frame is referenced correctly as above.
Hope this helps. Peace!
[Edited by rtwodtwo on 02-12-2002 at 07:12 AM]