|
This error means the component you are
trying to add is already a child component of some container. In your example I’m
sure VBox is already a child of application or any other component. You first
need to remove that child from the existing parent and then add to a new parent. If the VBox id is V1 and Panel’s id is P1
then you should write <mx:RemoveChild target=”{V1}”/> <mx:AddChild target=”{V1}” relativeTo=”{P1}”/> -Ashish From: Error: Cannot add a child that is already parented. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [flexcoders] MX:AddChild error Ian Skinner
- Re: [flexcoders] MX:AddChild error Michael Schmalle
- RE: [flexcoders] MX:AddChild error Ashish Goyal
- RE: [flexcoders] MX:AddChild error Ian Skinner

