3 Replies Latest reply on Apr 17, 2009 6:01 AM by Richard_UK

    SWFLoader odd behaviour

      Hi, i've created an swf loader component (DataBroswer.mxml) that pulls in the swf of a data browser application that i've written:

       

       

       

      <?xml version="1.0" encoding="utf-8"?>

      <

      mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" width="675" height="550">

       

       

           <mx:SWFLoader id="loader" x="0" y="0" width="100%" height="100%" source="assets/browser.swf"/>

       

      </mx:Panel>

       

      I'm using a button from another application to launch a popup window with the browser component contained within:

       

       

      private function openBrowser():void {

       

       

           var mybrowser:DataBrowser = new DataBrowser();

       

           PopUpManager.addPopUp(mybrowser, this, false);

           PopUpManager.centerPopUp(mybrowser);

      }

       

      The popup window opens but instead of showing browser.swf it contains a new version of the host application (main.swf). I've tested the code on it's own independent of the host app and it works fine, i'm still a flex beginner so i can only assume it's behaviour is due to some concept i'm not aware of rather than the code.

       

      Thanks