flash on 2012-5-9

by geckojsc
♥0 | Line 19 | Modified 2012-05-09 00:41:03 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var a:Data = new Data(1, 2);
            a.info()
        }
    }
}

dynamic class Data {
    public var x:int = 0, y:int = 0;
    public function Data(x:int, y:int) {
        this.x = x;
        this.y = y;
    }
    public function info():void {
        trace(this.x, this.y);
    }

}