1 Reply Latest reply on May 28, 2010 6:25 AM by chauffeurdevan

    Can't load Catalyst's .swf thru AS3 Loader - Error #1009

    chauffeurdevan Level 2

      Hi,

       

      For an Air project, I want to be able to load an external swf that's compiled with a trial of Flash Catalyst CS5 1.0.0.273393 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 :

       

      var urlRequest:URLRequest;

      urlRequest = new URLRequest("Main.swf");

      var loader:Loader = new Loader()

      loader.load(urlRequest);

       

       

      For the catalyst project, I even tried with an empty project, nothing on the stage.

       

      Here is the error :

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      at mx.managers::FocusManager/activate()

      at spark.components::Application/initManagers()

      at spark.components::Application/initialize()

      at Main/initialize()

      at mx.managers.systemClasses::ChildManager/childAdded()

      at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()

      at mx.managers::SystemManager/initializeTopLevelWindow()

      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()

      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at mx.preloaders::Preloader/timerHandler()

      at flash.utils::Timer/_timerDispatch()

      at flash.utils::Timer/tick()

       

       

      If anyone have a solution it will really be helpful.

       

       

      Thanks

       

      Jocelyn Tremblay