I HAVE TWO PANEL AND ONE BUTTON IN AN APPLIACTION ONE PANEL CONTAINS VBOX WHICH CONTAINS A DATAGRID SECOND PANEL IS EMPTY
I WANT TO PLACE VBOX OF PANEL ONE TO BE COPIED IN PANEL TWO BUT I OBSEVE A STRANGE BEHAVIOUR ITS IS REMOVED FROM PANEL ONE CAN U TELL ME WHY HERE IS MY CODE. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel id="PANEL1" title="Panel One"> <mx:VBox id="vbx"> <mx:DataGrid > <mx:ArrayCollection> <mx:Object> <mx:Artist>Pavement</mx:Artist> <mx:Price>11.99</mx:Price> <mx:Album>Slanted and Enchanted</mx:Album> </mx:Object> </mx:ArrayCollection> </mx:DataGrid> </mx:VBox> </mx:Panel> <mx:Panel id="PANEL2" title="Panel Two"> </mx:Panel> <mx:Button label="Copy VBOX" click=" {PANEL2.addChild( vbx ) } "/> </mx:Application> ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

