I have a flex project where in the design view i put a datagrid into a canvas. In the apps code i eventually add the datagrid to be a child of a diffrent object but now the original parent canvas starts acting strange. The original parent canvas will print out that it has 1 child (when it infact should have 0) and when i try to .getChildAt(0); it returns a Error #2006: The supplied index is out of bounds.
now if i try to add the datagrid back to the original canvas i get the same error, anyone know why something like this would occur and how to fix it?
Are you doing something unusual to move the DataGrid out of the canvas?