Skip to main content
oluc
Known Participant
April 14, 2011
Answered

using "next" in a for loop?

  • April 14, 2011
  • 1 reply
  • 451 views

Hi!

can you simply explain to me in an example how to use "next" in a "for" loop? i think it is exactly what i need but i cant find any examples of how to use it.

tks. O

This topic has been closed for replies.
Correct answer kglad

just write the line of  code below the for-loop

for(var i...){

//do whatever

}

var instance:ClassName=new ClassName()

1 reply

kglad
Community Expert
Community Expert
April 14, 2011

there's no "next" in actionscript (except for a very special use that does not apply to for-loops).

oluc
olucAuthor
Known Participant
April 14, 2011

oh, thanks.

so how would one go about calling a constructor after a loop finishes?

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 14, 2011

just write the line of  code below the for-loop

for(var i...){

//do whatever

}

var instance:ClassName=new ClassName()