HI well this is the code to load swf…
stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
stage.align = flash.display.StageAlign.TOP_LEFT;
var urlToLoad:String = “demo.swf”
//path to SWF that i want to load
var swfLoader:Loader = new Loader();
//you have to make a new loader variable to load the SWF
var swfRequest:URLRequest = new URLRequest(urlToLoad);
//you have to make a new URLRequest to put a URL to load from
swfLoader.load(swfRequest);
//using the .load method will actually load the URL into the loader
addChild(swfLoader)
////////////////////////////////// end
this code load swf…but when i tried with 1 swf… i got the error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Main$iinit()
how to sove this error…its important for me to load this swf…desired swf is working perferctly when running independently