actionscript 3 - Where is that syntax error on line 2? -
ok, in next actionscript 3.0 code there syntax error on line 2, don't know is. i'm beginner please help me on this?
var numbertocast:number;
on next line there syntax error, says compiler, , haven't clue is
for (numbertocast = –1; numbertocast<2; numbertocast++){ trace("boolean(" + numbertocast +") " + boolean(numbertocast)); }
the problem -
(numbertocast = –1;), it's not minus symbol. symptom of copying , pasting (out of microsoft office maybe? word bad replacing minus dash)
and per comment, need define (var
) numbertocast
(either prior loop or in loop declaration) or you'll different error after fixing minus.
actionscript-3
No comments:
Post a Comment