id-ilych / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

Compiler error in AESKey: for-loops in static initializers should be nested inside anonymous functions #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
{ // start initializer

    (function():void 
    {
    var i : uint;
    for (i = 0; i < 256; i++) 
    {
        //do whatever
    }
    } ( )); // function is called directly

} // end initializer

If for loops reside directly inside the initializer, the code is marked as 
unreachable, and the flex compiler will not compile the class.

I have attached a corrected version of the AESKey Class.

Original issue reported on code.google.com by tobiasgo...@me.com on 4 Oct 2010 at 10:17

Attachments: