I have 2 scenes, the first one is a preloader en at the end it goes to scene 2…in fact, it goed to the framelabel in scene 2…
in Scene 2 there is a simple menu, with buttons…an an empty movieclip called "container’.
Now my problem is, on release, in the MC container I load an swf,…; that all works fine. But after a while, when you pus a button or 4…5 it jumps back to the preloader… in scene one… and there is no reason what so ever to do that.
Does anyone know what I’m talking about ? I just cant see what I’m doing wrong. I’ts all very simple…but stille… the ■■■■ thing goes back to the first scene.
I think I’m going cray here !!! :stare:
Please help me someone…
Yey, you should make it in just one scene! :rambo:
(Im talking about the fla in the zipfile, i suppose you’ve dl that ? )
Lets see… on the 40th frame of that preload scene is a line of actionscript:
gotoAndPlay("Scene 2", 1);
[FONT=Courier New] [/FONT] This line tells flash to go the first frame of the scene called “Scene 2”.
If you want to change this, and stay in the currect scene, replace the original line with this one:
gotoAndPlay("imLoaded");
What this does, it tells flash to go to the frame with the label “imLoaded”.
Ofcourse you can call you labes anything you want.
This way you stay in the same scene
Boerboel649 is completely right!
But when working with more complex Fla structures, it could be confusing.
Also when you need some extra keyframes, you have to recount all frames and change the code. When working with labels, you can just move the label
Wow its out of controll! :cantlook:
Looks like you can still click those buttons when you already did or something…
Could you post up you Fla, so we can take a look.
[COLOR=DimGray]
[duch]
Ziet er trouwens tof uit, fris kleurgebruik! :love:
… en ik kan het lezen!
Okay, I think I figured it out. It seems like FLash 8 for MAC has a bug. Because, if my collegue resaved the file as Flash MX, it worked fine. But then when I opened it again, it started to flip again.
So, it has to be a bug !
I can’t post the fla, it’s to large.
[duch]
Bedankt voor de leuke commentaar. En je ziet hier idd niet vaak een site in het nederlands. :thumb2:
[/dutch]