So loading an SWF is pretty simple.
var swfLoader:Loader = new Loader();
var swfURL:URLRequest = new URLRequest("freeway-fury.swf");
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
swfLoader.load(swfURL);
function onCompleteHandler(e:Event) {
addChild(e.currentTarget.content);
}
This method works to load SWFs on a domain or locally. I am running into a problem though, trying to load one for a particular game. I downloaded the SWF locally just to see if I can load it, and I still can’t and get an error:
"TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.flixel::FlxPreloader()
at Preloader()
"
Here is where I grabbed the SWF - http://www.primary-games.org/game/249/Freeway-Fury.html
I can load nearly everything else, just not this. Any ideas?
Thanks!