Created
February 7, 2012 20:30
-
-
Save jgranick/1761759 to your computer and use it in GitHub Desktop.
How to display a bitmap (NME recipe)
This file contains hidden or 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 nme.display.Bitmap; | |
import nme.display.Sprite; | |
import nme.Assets; | |
/** | |
* @author Joshua Granick | |
*/ | |
class DisplayingABitmap extends Sprite { | |
public function new () { | |
super (); | |
var logo = new Bitmap (Assets.getBitmapData ("assets/nme.png")); | |
addChild (logo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment