Can't use "continue <label>"

Posted by M28 on Stack Overflow See other posts from Stack Overflow or by M28
Published on 2010-03-18T19:13:51Z Indexed on 2010/03/18 19:51 UTC
Read the original article Hit count: 254

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about loop