PDA

View Full Version : looping a scene



Geoff
July 18th, 2003, 04:12 AM
Could someone kindly tell me how to :

get a scene to loop twice (or perhaps three times) and then proceed to the next scene.

I imagine I need a counter and an if statement but I don't know enough ActionScript to do it.

Thank you.

Geoff

e.s.x.s
July 18th, 2003, 04:27 AM
put this code to your scene's last frame:

var count;
count += 1;
if(count>3){
gotoAndPlay("next scene name",1);
} else {
gotoAndPlay(1);
}

Geoff
July 18th, 2003, 09:38 AM
Thanks, that's great

geoff

e.s.x.s
July 18th, 2003, 09:44 AM
u r welcome Geoff..;)