So I was messing around in flash the other day, and decided it'd be fun to make a class that would load a NW file and display it by drawing it to a BitmapData object.
Here's an example of use:
PHP Code:
import Level;
// the new Tileset(0,0) bit below, is pics1.png in the Library, with Linkages set up to allow script access.
var glevel = new Level(new Tileset(0,0));
glevel.addEventListener(Event.COMPLETE, got_level);
// can also be a relative url
glevel.load("http://gscriptdef.graalstudios.com/mylevel.nw");
function got_level(event) {
addChild(new Bitmap(glevel.render()));
}
And attatched is the Class, and screenies
