Skip to content

Instantly share code, notes, and snippets.

@jgranick
Created June 4, 2013 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgranick/5709586 to your computer and use it in GitHub Desktop.
Save jgranick/5709586 to your computer and use it in GitHub Desktop.
Simple example
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;
}
}
<?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