|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Looping frames x-y for 'z' amount of times then proceeding to frames after loop
Hi,
I'm relatively new to Flash and have not done much work with the AS. I was hoping someone here could enlighten me on an area which has been stumping me. I need to know how to loop (for example) frames 1 to 5, 4 times then continue to frame 6 until the last frame, then go back to frame 1, thus re-entering the loop, etc. I do believe it would involve something like this... but then again I'm a newbie to this so... what do I know (which is why I wanna learn) Frame 1: i=0 Frame 5: i=i+1 if (i>4) { gotoAndPlay(6); } else if (i<4) { gotoAndPlay(1); } Thanks so much ![]() |
|
#2
|
|||
|
|||
|
Hi, what you have seems fine..add:
Frame 10...the last frame whatever that might be :¬) gotoAndPlay(1); |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Looping frames x-y for 'z' amount of times then proceeding to frames after loop |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|