In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

ff [2]: Array bug

Get Adobe Flash player
by makc3d 23 Feb 2011
    Embed
// forked from xSonoSx's forked from: Array bug
// forked from makc3d's Array bug
package {
    import com.actionscriptbible.Example;
    public class FlashTest extends Example {
        public function FlashTest() {
            // http://juick.com/valyard/1230690
            var a:Array = ["bla"];
            a[ uint.MAX_VALUE - 4] = "bla2";
            trace( a.length ); // 0
            a.push(1, 2, 3);
            trace( a.length, a[0] ); // ok
            a.push (4)
            trace( a.length, a[0] ); // still ok
            a.push (5)
            trace( a.length, a[0] ); // bug
        }
    }
}