flash on 2010-9-29

by zahir
♥0 | Line 26 | Modified 2010-09-29 01:49:53 | MIT License
play

ActionScript3 source code

/**
 * Copyright zahir ( http://wonderfl.net/user/zahir )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/yH5j
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    
    [SWF(width="465", height="465")]
    public class FlashTest extends Sprite{
        private var t:TextField;
        public function FlashTest() {
            // write as3 code here..
            addChild( (t = new TextField()) );
            t.width = t.height = 465;
            
            var v:Vector.<int> = new <int>[0,1];
            
            t.appendText( "" + v.length + "\n" );
            
            v.length += 5;
            t.appendText( "" + v.length + "\n");
            
            v[2] = 2;
            v[3] = 3;
            v[4] = 4;
            v[5] = 5;
            v[7] = 7;
            
            t.appendText( "" + v + "\n");
            
            var n:int = 2;
            
            v[n++] = 100;
            v[++n] = 101;
            
            t.appendText( "" + v + "\n");
        }
    }
}