Results 1 to 4 of 4
Thread: Loop ?
-
January 5th, 2010, 04:16 AM #114Registered User
postsLoop ?
hi can you help me "trace" this
0
1
2
0
1
2
0
1
2
0
1
2
0
1
2
I´ve got 3 balls in Array [red,green,blue] and i want it repeat for 5 times...
Finally i will see 15 balls red,green,blue, red,green,blue red,green,blue etc..
thank you
-
January 5th, 2010, 06:14 AM #2
A nester for condition would suffice for this.
Code:for(var i:int=0;i<5;i++) { for (var j:int=0;j<3;j++) { trace(j); } }
-
January 5th, 2010, 10:15 AM #314Registered User
posts
-
January 5th, 2010, 10:20 AM #414Registered User
posts

Reply With Quote


Bookmarks