Skip to content

Instantly share code, notes, and snippets.

@jgranick
Created February 7, 2012 21:17
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/1762009 to your computer and use it in GitHub Desktop.
Save jgranick/1762009 to your computer and use it in GitHub Desktop.
How to embed SWF content -- Using <library /> (NME recipe)
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);
}
}
@jgranick
Copy link
Author

jgranick commented Jun 8, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment