Hi Tracy, 

These are the errors I received in the debug:

     _aChildren[iIndexClicked] = <errors during evaluation>
     No such variable: undefined

but the "_aChildren" variable is set as follows:                
     private var _aChildren:Array=[];
and the "iIndexClicked" variable is set as follows:
     var iIndexClicked:int = parseInt(event.target.id);

The iIndexClicked always returns an id=0
even if I loaded several modules...

     flash.display::DisplayObjectContainer/removeChild [no source]


Here's the full function:
     
     private var _aChildren:Array=[];

     private function unloadclick(event:Event):void 
     {
     var iIndexClicked:int = parseInt(event.target.id); 
     modulestile.removeChild(_aChildren[iIndexClicked]);
     modulestile.removeChild(DisplayObject(event.target));
     }




        

David


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Try the debug approaches I suggested.
> 
> Tracy


Reply via email to