2 Replies Latest reply on Oct 20, 2009 10:31 AM by Flex harUI

    Loading a remote swf from a local swf

    megatron242 Level 1



      I'm trying to load a remote swf from a local swf. Both were created using Flex 3.3. The problem is that when the remote swf tries to open a pop up window (i.e., alert) the following error is given:


      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at mx.managers::PopUpManagerImpl/addPopUp()[C:\autobuild\3.3.0\frameworks\projects\framework \src\mx\managers\PopUpManagerImpl.as:289]
          at mx.managers::PopUpManager$/addPopUp()[C:\autobuild\3.3.0\frameworks\projects\framework\sr c\mx\managers\PopUpManager.as:169]
          at mx.controls::Alert$/show()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\contro ls\Alert.as:519]
          at TestWidget/onReceivedMessage()[C:\devel\flex\TestWidget\src\TestWidget.mxml:84]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at com.rayv.widgets::FlashChannelWidget/sendMessageToWidget()[C:\devel\flex\RayvWidgets\src\ com\rayv\widgets\ChannelWidget.as:128]



      I have in my code:




      And I'm using SWFLoader to load the swf.


      Any ideas?