Created
June 4, 2013 21:04
-
-
Save jgranick/5709586 to your computer and use it in GitHub Desktop.
Simple example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flash.display.Sprite; | |
class Main extends Sprite { | |
public function new () { | |
super (); | |
var sprite = new Sprite (); | |
sprite.graphics.beginFill (0xFF0000); | |
sprite.graphics.drawRect (0, 0, 100, 100); | |
addChild (sprite); | |
sprite.x = 100; | |
sprite.y = 100; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project> | |
<meta title="Example" package="com.example.testing" version="1.0.0" company="Joshua Granick" /> | |
<app main="Main" path="Export" file="Example" /> | |
<source path="Source" /> | |
<haxelib name="openfl" /> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment