Hi, i have a simple test project and the sudo code is below: <application> <panel id="redPanel"> <panel id="greenPanel" /> </panel> <button label="Move To Stage" click="stage.addChild(greenPanel);"/> <button label="Move to Red Panel" click="redPanel.addChild(greenPanel);"/> </application>
the idea is to move the 'greenPanel' to and from the stage. I can move it from the redPanel and into the stage without any problems but when the other button is clicked to move it back from the stage to the redPanel i get the error below. does anyone have an idea as to what might be causing this error. ERROR: supplied displayobject must be a child of the caller