My animation works in AS3 but wont respond to mouse events I suspect I have bitmaps and have to convert the bitmap to a sprite.
I cant do this as yet.
} private function imageLoaded(event:Event):void { var Singleimage:Bitmap = new Bitmap(event.target.content.bitmapData); //var bmd=Singleimage.bitmapData; //img1=new Bitmap(bmd); MyImages.push(Singleimage); //img1.bitmapData = bmd; //addChild(MyImages[0]); addChild(MyImages[0]); //img1.x =xx; //img1.y=100; //xx+=40; dispatchEvent(new Event("image_loaded")); } public function moveChar() { var xpos:int; //removeChild(MyImages[0]); timej+=1; if (timej>=10) { xpos=MyImages*.x; removeChild(MyImages*); i+=1; if (i==4) { i=0 } addChild(MyImages*); MyImages*.x=xpos; } MyImages*.y=100 MyImages*.x+=5 if (MyImages*.x>400) { MyImages*.x=10; } } public function moveleft() { MyImages*.x-=5 } public function moveright() { MyImages*.x+=5 }