Skip to content

Instantly share code, notes, and snippets.

@jgranick

jgranick/NyanCat.hx

Created Feb 7, 2012
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@jgranick 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