this.numChildren returns 7

Will work on a sample app to demonstrate.


--- In [email protected], Alex Harui <aha...@...> wrote:
>
> Maybe publish a full test case in 20 lines or so.  What is this.numChildren?
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of jmfillman
> Sent: Tuesday, September 08, 2009 10:11 PM
> To: [email protected]
> Subject: [flexcoders] The supplied DisplayObject must be a child of the caller
> 
> 
> 
> So I'm trying to remove a child from a canvas container.
> 
> trace (this.getChildAt(6));
> this.removeChild(this.getChildAt(6));
> this.removeChildAt(6);
> 
> The trace statement returns the path to the correct child, but when I try 
> removeChild() or removeChildAt(), I get:
> 
> The supplied DisplayObject must be a child of the caller
> at flash.display::DisplayObjectContainer/getChildIndex()
> 
> Why???
>


Reply via email to