added readme and example
This commit is contained in:
14
example/src/Main.hx
Normal file
14
example/src/Main.hx
Normal file
@@ -0,0 +1,14 @@
|
||||
import flash.display.Shape;
|
||||
import flash.Lib;
|
||||
|
||||
class Main {
|
||||
|
||||
public static function main() {
|
||||
trace("Hello world!");
|
||||
var shape = new Shape();
|
||||
shape.graphics.beginFill(0x00ff00);
|
||||
shape.graphics.drawCircle(50, 50, 20);
|
||||
shape.graphics.endFill();
|
||||
Lib.current.addChild(shape);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user