samedi 21 novembre 2015

Why as3 giving me syntax error in a for loop?

I'm new with actionscript and I keep getting syntax error with the following for loop:

for each (target:Target in targets) {
  if(target != null) {

And I got this error message:

Syntax error: expecting in before colon.

What is the problem?

Aucun commentaire:

Enregistrer un commentaire