Hi guys I get this coercion error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Shape@41754601 to flash.display.
When I create an instance of a MovieClip from my library:
var childmc:ChipEasy = new ChipEasy();
Canvas.Map.Tiles.addChild(childmc);
When I try to access all the children like:
for (var i:int=0; i<Canvas.Map.Tiles.numChildren-1; i++)
{
var mc:MovieClip = Canvas.Map.Tiles.getChildAt(i);
}
Any suggestions?