Created
February 7, 2012 21:17
-
-
Save jgranick/1762009 to your computer and use it in GitHub Desktop.
How to embed SWF content -- Using <library /> (NME recipe)
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
package com.joshuagranick.nyancat; | |
import nme.display.Sprite; | |
/** | |
* @author Joshua Granick | |
*/ | |
class NyanCat extends Sprite { | |
public function new () { | |
super (); | |
var cat = new NyanCatAnimation (); | |
addChild (cat); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you include a tag in your NMML project file, NME will generate classes for each of the symbols found in your target SWF, automatically.