I am trying this code:
entLoop:for(var i:*in entities) {
for(var i2:*in ignoreEntities) {
if(entities[i].type==ignoreEntities[i2]) {
continue entLoop;
}
}
}
Why is it not working? The error is:
Target of continue statement was not found.
I may be wrong, but it seems that the
continueinstruction doesn’t work withfor...inloops.Compiler doesn’t throw any error with this code :
(I replaced your condition by
truesince I don’t have the definitions for yourentitiesandignoreEntitiesarrays)