i have made 3 scenes, and i will, when you come on my site, that you see every time on other scene, so i have this as in my first frame in the first scene:
keuze = “random(3)”;
if (keuze=0) {
gotoAndPlay(“noorwegen”, 1);
} else if (keuze = 1) {
gotoAndPlay(“finland”, 1);
} else if (keuze = 2) {
gotoAndPlay(“denemarken”, 1);
}
it works a little: the third scene i don’t see after trying 5/6 times
and an other problem:
when i came at the last frame of noorwegen i have put this:
gotoAndPlay(“noorwegen”, 1);
but he goes to finland and there a have the same script:
gotoAndPlay(1);
and that’s working
Hi virusdoder,
If I have understood correctly, your random code is in frame1, scene1, is that right ?
If so when you send the play head back to (“noorwegen”,1), it is reading your random code first and keuze!=0.
Try adding a fourth scene with one frame at the very beginning of your movie, place your random code in that frame, then, if you want the user to go back to the first frame of the scene he has just watched, your code as above will work, alternatively, you can change your end scene code to:
haha, ilyaslamasse, sry for my bad english, but i do my best. But hollandais is not french. this is hollandais: een goede middag, u heeft een prettige da voor de boeg.
Hi,
As ilya pointed, you need to take a look at your syntax - this I copied direct from frame 1 of your movie :
[AS]keuze = “random(3)”;[/AS]
it should be [AS]keuze = random(3);[/AS]
if you change that line of code, your movie will open in a different scene evrytime you run it, however, your code:
[AS]gotoAndPlay(1);[/AS]
will send the playhead back to fr1 of the scene that you have just watched - except scene noorwegen.
Do as I said in the previous post and either leave your gotoAndPlay code as is, or if you want the user to see a different scene after each scene, use the code I posted above.