9 Replies Latest reply on Nov 13, 2006 10:34 AM by Ukie_239

    Accessing the content of SWFLoader

    jpwrunyan Level 1
      In Flex 1.5 it was possible to do the following:
      <mx:Application xmlns:mx=" http://www.macromedia.com/2003/mxml">
      <mx:Button label="Browse" click="myLoader.content.browse('myFile')" id="browseButton" />
      <mx:Button label="Upload" click="myLoader.content.upload(' http://localhost:8300/upload.cfm')" id="uploadButton" />
      <mx:Loader source="fileIO.swf" height="10" width="10" id="myLoader" />
      </mx:Application>
      (above example is from http://www.adobe.com/devnet/flex/articles/fp8_features.html)

      However, when you try running methods in an swf (compiled from .mxml in Flex 2) and then call those methods from an SWFLoader instance's content property, nothing happens. I just get errors.

      How can I communicate between my application and an application loaded in SWFLoader in Flex 2.0?