4 Replies Latest reply on Dec 3, 2010 1:51 AM by Flex Rock

    IFrame(child container) still visible after closing the title window(parent container)

    tuliptaurus Level 1

      Hi All ,



      I have created a sample project using a link button which when clicked opens up an TitleWindow which has an iframe and a text area in a hbox


      When you execute the application ,

                Click the link button

                The Popup window opens up showing the title window with the close button

                Click the close button of the title window

                The Title window is removed and the iframe and the text area are not visible



      Do this a couple of times

      You can notice that the iframe is still visible even when the title window is closed


      Can someone explain me how this issue can be resolved and also explain me why the iframe(child container) is still visible when the title window(parent container) is not visible. 



      Main Application file


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


          width="100%" height="100%" creationPolicy="all"


          layout="vertical" creationComplete="init()"





             import mx.managers.PopUpManager;

             import containers.PopUpBrowser;


             public function doRequest():void


                      var requestPopup:PopUpBrowser = PopUpManager.createPopUp(this, PopUpBrowser) as PopUpBrowser;


                      requestPopup.x = 220;

                      requestPopup.y = 50;




         <mx:Text fontSize="14" fontWeight="bold" text="Click the link button below to open the Title Window" />

         <mx:Spacer height="100"/>

         <mx:LinkButton label="Click me" fontSize="16" fontWeight="bold" click="doRequest()"/>



      PopUpBrowser.mxml Component
      <?xml version="1.0" encoding="utf-8"?>
          width="850" height="500"
          title="Klout User Profile"
          paddingTop="1" paddingBottom="1"
          paddingLeft="1" paddingRight="1"
          verticalScrollPolicy="off" >
                  import mx.managers.PopUpManager;
                  public function removeMe():void
          <mx:HBox width="100%" height="100%">
          <flexiframe:IFrame source="http://www.google.com" id="iFrame" width="50%" height="100%"/>
          <mx:TextArea text="Open and close the title window few times and watch the iframe remain visible even when the title window is closed"
               fontSize="14" width="50%" height="80%"/>