「smokeobject」のプロパティでもあるムービークリップ「whitesmoke」を参照して、enter_frame リスナー「animatesmoke」内で「smokeobject」の速度プロパティを取得する方法
ここに私のコードがあります
public function createRocketSmoke()
{
var smokeObject:Object = new Object();
smokeObject.whiteSmoke = new Bitmap(new WhiteSmoke(0,0));
smokeObject.whiteSmoke.x=targetX + Math.random()*4-8;
smokeObject.whiteSmoke.y=targetY + Math.random()*4-8;
smokeContainer=new MovieClip();
smokeContainer.addChild(smokeObject.whiteSmoke);
addChild(smokeContainer);
var randomScale = Math.random();
if(randomScale<.5)
randomScale = randomScale+.5;
smokeObject.whiteSmoke.scaleX= randomScale;
smokeObject.whiteSmoke.scaleY= randomScale;
smokeObject.speed = Math.random();
smokeObject.whiteSmoke.rotation = Math.random()*360;
smokeObject.whiteSmoke.addEventListener(Event.ENTER_FRAME,animateSmoke);
}
public function animateSmoke(event:Event):void
{
//here i want the speed property of the 'smokeObject'
}