I have no idea why this is here, it wasn't here before and I hope it's not just someone trolling ._.
public function new(LevelData:Dynamic)
{
// Load xml file
var str:String = "";
// Passed embedded resource?
if (Std.is(LevelData, Class))
{
str = Type.createInstance(LevelData, []);
}
// Passed path to resource?
else if (Std.is(LevelData, String))
{
str = Assets.getText(LevelData);
}
}
_xml = Parser.parse(str);
_fastXml = new Fast(_xml.firstElement());
width = Std.parseInt(_fastXml.att.width);
height = Std.parseInt(_fastXml.att.height);
//FlxG.camera.setBounds(0, 0, width, height, true);
}