Цитата:
Сообщение от random13
помойму хватит вот этого судя по логике:
 Код AS3:
function animate(e:Event):void
{
e.target.x -= 2;
if(e.target.x <50)
{
removeChild(e.target);
}
}
|
1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display

isplayObject.
Добавлено через 2 минуты
Цитата:
Сообщение от cleptoman
когда не знаешь чего откуда удалить, то логичнее сделать так:
 Код AS3:
function animate(e:Event):void
{
var item:DisplayObject = e.target as DIsplayObject; // зачем дергать геттер в хендлере каждый раз?
item.x -= 2;
if(item.x <50)
{
if(item.parent){
item.parent.removeChild(item);
}
}
}
|
1120: Access of undefined property DIsplayObject. var item

isplayObject = e.target as DIsplayObject;
1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display

isplayObject.