# Animation works but wont respond to mouse events

**URL:** <https://forum.kirupa.com/t/animation-works-but-wont-respond-to-mouse-events/314591>\
**Category:** Uncategorized\
**Created:** [October 3, 2010, 8:41am UTC](https://forum.kirupa.com/t/animation-works-but-wont-respond-to-mouse-events/314591 "2010-10-03T08:41:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagguy](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jagguy](https://forum.kirupa.com/u/jagguy)\
**Post date:** [October 3, 2010, 8:41am UTC](https://forum.kirupa.com/t/animation-works-but-wont-respond-to-mouse-events/314591/1 "2010-10-03T08:41:47Z")

</div>

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.

```auto

} 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 } 

```
