0 Replies Latest reply on Mar 26, 2010 2:38 PM by kati.sun

    ComboBox delete from memory




      Have got page where many times add/remove combobox. Unfortunately in cases when 'user':


      1)add text to TextInput

      2)'interact' with combobox


      Profile is showing that instance of class ListCollectionViewCursor is not removed. But when there is no any of above interaction instance of class ListCollectionViewCursor is removed




      Simple test :

      1) when page loaded click 'remove combobox' - you will see that ListCollectionViewCursor is removed

      2) when page loaded add some text to TextInput then click 'remove combobox' - you will see that  ListCollectionViewCursor is not removed


      What I am doing wrong?




      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
              private function remove():void{
                  if(_combobox !=null){
                     _combobox = null;
                  try {                   
                         new LocalConnection().connect('foo');
                         new LocalConnection().connect('foo');
                      } catch (e:*) {}
      <mx:VBox id="_container">   
              <mx:Button click="remove()" label="remove combobox" />
              <mx:TextInput id="_textFocus"/>


           <mx:ComboBox id="_combobox"   width="265" height="33" >
               <mx:ArrayCollection id="_comboboxAC">