in my application, i have a <mx:DataGrid> and i want to make a copy of it for
another panel. i can get this DataGrid object by calling:

        var dataGrid:DataGrid = DataGrid(container.getChildAt(0));

but when i called 
        var displayObj : DisplayObject = 
DisplayObject(ObjectUtil.copy(dataGrid));
        // or   var displayObj : DataGrid = DataGrid
(ObjectUtil.copy(dataGrid));

i got #1034 error.

how to copy that dataGrid?



-- 
View this message in context: 
http://www.nabble.com/how-to-copy-a-DisplayObject-tp16192628p16192628.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to