Groups | Blog | Home
all groups > flash actionscript > april 2006 >

flash actionscript : GotoAndPlay


homegrownideas
4/26/2006 11:35:05 PM
Can I set a script to gotoandplay a certain frame a number of time and than
jump to a new keyframe? Ex: Keyframe 20: gotoAndPlay(1); I would like it to do
this five times and on the sixth goto frame 21. Any ideas?
-Ethan
kglad
4/27/2006 2:01:49 AM
on frame 20:



if(!loopedPreviously){
loopedPreviously=1;
} else{
loopedPreviously++;
}
if(loopedPreviously<6){
this.gotoAndPlay(1);
AddThis Social Bookmark Button