# What is wrong with this code?

**URL:** <https://forum.kirupa.com/t/what-is-wrong-with-this-code/243275>\
**Category:** Uncategorized\
**Created:** [November 5, 2007, 10:29am UTC](https://forum.kirupa.com/t/what-is-wrong-with-this-code/243275 "2007-11-05T10:29:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecptavares](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@ecptavares](https://forum.kirupa.com/u/ecptavares)\
**Post date:** [November 5, 2007, 10:29am UTC](https://forum.kirupa.com/t/what-is-wrong-with-this-code/243275/1 "2007-11-05T10:29:26Z")

</div>

Hi!

I have an as file with this code:

```auto

package
{
    import flash.display.MovieClip;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.events.MouseEvent;
    
    public class teste extends MovieClip
    {
        private var img : image1;
        
        public function teste()
        {
            init();
        }
        
        private function init():void
        {
            img = new image1();
            img.addEventListener(MouseEvent.MOUSE_OVER,onMouseOver);
            TransitionManager.start(img1, {type:Zoom, direction:Transition.IN, duration:1, easing:Bounce.easeOut});
        }
        
        private function onMouseOver(e:MouseEvent):void
        {
            TransitionManager.start(img1, {type:Zoom, direction:Transition.IN, duration:1, easing:Bounce.easeOut});
            
        }
    }
}

```

image1 is a movie clip that I right clicked and chose linkage and checked export to actionscritp.

and in my flash application I have put teste in the document class.Everything runs fine except that The image1 does not do anything when I mouse over it.

What is wrong with this code?
