flash on 2009-8-28

by Horiuchi_H
♥0 | Line 18 | Modified 2009-08-28 16:26:01 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var v1:Vector.<int> = new Vector.<int>([1,2,3]);
            var v2:Vector.<int> = Vector.<int>(v1);
            
            v2[1] = 9;
            
            var t1:TextField = new TextField();
            t1.text = v1.toString();
            t1.x = 2;
            t1.y = 2;
            addChild(t1);
            var t2:TextField = new TextField();
            addChild(t2);
        }
    }
}