Hi
I have a TileList witch all my movieclips from library, i wold like to click in item and this item appear on my stage.
myTileList.addEventListener(MouseEvent.MOUSE_DOWN,clicouItemLista);
function clicouItemLista(e:Event){
//-----------------------example out
trace(e.target.source);//cn4
trace(e.target.name);//instance198
trace(e.target.data);//[object Object]
trace(e.target);//[object ImageCell]
var m:MovieClip = e.target as MovieClip;
myCustonStage.addChild(m);
}
but i don’t know how to convert my e.target to movieClip i always has this kind error:
TypeError: Error #2007: O parâmetro child não deve ser nulo.
at flash.display::DisplayObjectContainer/addChild()
can anyone help me please?
tkkz