2 Replies Latest reply on Nov 23, 2010 5:25 PM by r.rubio

    RadioButton prevents Swf file from being unloaded

    r.rubio

      Using Flex SDK 4.1 with Flash Builder 4.

       

      If i try to unload a vanilla application with a radio button it is never unloaded. 

       

      If i remove radio button application is unloaded.

       

      Below is the content of my application.

       

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">  

           <mx:RadioButton label="Radio Button"  id="testRadioButton" groupName="testTypes" width="130"/>

       

      </mx:Application>

       

      I use the following code on my main portal application to unload the application.

       

      this.mainPanel.removeChild(this._swfLoader);

      this._swfLoader.unloadAndStop(true);

      this._swfLoader = null;