For an Air project, I want to be able to load an external swf that's compiled with a trial of Flash Catalyst CS5 126.96.36.1993393 using Flash CS4 10.0.2 but I get an Error #1009.
Here is a simplest code to load an external swf that even give me the error :
urlRequest = new URLRequest("Main.swf");
var loader:Loader = new Loader()
For the catalyst project, I even tried with an empty project, nothing on the stage.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
If anyone have a solution it will really be helpful.
I found the reason why it is doing this #1009 Error message, there is some component in the exported swf that need to be on a stage when loaded, so the solution is to add directly the Loader to the stage before calling the load function :
var loader = addChild(new Loader());