gotoAndPlay problem
- Started
- Last post
- 9 Responses
- unknown
Using (flash) MX -
I put:
gotoAndPlay("Scene 2", 1);..in a frame script at the end of a movie clip in my Scene 1. When the movie clip plays and gets to that frame, the movie doesnt change scenes! I also put:
trace("got here");
right after the gotoAndPlay command, and it printed in the output. It seems like it is just ignoring the gotoAndPlay("Scene 2", 1); command...I *have* been able, using the same command attached to a press action on a button, to switch scenes, and there is no error generated when I execute my framescript.
PLEASE help me!? Anyone ever have this gotoAndPlay script ignored?
-mat
- unknown0
aahhh please dont let this get buried its such a weird problem....
- phlojonaut0
try on a new scene file...
see if it works ....
- fues0
Are you sure you haven't renamed your Scene 2? Or that you changed your scene order and that Scene 2 actually is Scene 1?
Just tracing "got there" after the gotoAndPlay command isn't a proof that (bad english I know) Scene 2 actually has loaded.
Just try nextScene() then..
- gabe0
try _root.nextScene();
or _root.gotoAndPlay("Scene 2", 1);
- unknown0
Yeah, I have tried all these things! I double-triple checked the scene name, I tried
_root.nextScene(),
and just
nextScene();
and
_root.gotoAndPlay("Scene 2", 1);
Nothing seems to respond - i am in a computer lab and even tried a different machine, I have restarted flash and made a new movie....
its so bizzare - if someone could get an MX file to jump to another scene based on a frame actionscript, could they send me the file? I WOULD KISS THE GROUND YOU WALK ON.
- chilaquil0
Post on flashkit.com
- autonoma0
Instead of using Scene references in frame actions, you need to give the first frame (or whatever frame you wanna go to in Scene 2) a name, and then use gotoAndPlay('frameNameHere').
- Mick0
Label your frame in scene 2 and goto the label name.
- foz40
I'd go with mick's one, always use Labels if you can, flash handles these much better than the scene GOTO.