Hi, I'm trying to use States and removing(RemoveChild) a child (mx:Text id='mytext') and trying to add it to a different container with addchild, but I get an error - ' identifier 'mytext' used more than once
I can do this in actionscript, but how do I do this in mxml, keeping the same id of 'mytext' on the text field?? <mx:State name="moveit"> <mx:RemoveChild target="{mytext}"/> <mx:AddChild relativeTo="{myhbox}" position="firstChild"> <mx:Text id="mytext" paddingTop="0" fontSize="16" width="100%"/> </mx:AddChild> </mx:State> thanks,