# Retrograding AS3.0 to AS2.0

**URL:** <https://forum.kirupa.com/t/retrograding-as3-0-to-as2-0/305843>\
**Category:** flash\
**Created:** [March 4, 2010, 1:30pm UTC](https://forum.kirupa.com/t/retrograding-as3-0-to-as2-0/305843 "2010-03-04T13:30:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eurogibbon](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@eurogibbon](https://forum.kirupa.com/u/eurogibbon)\
**Post date:** [March 4, 2010, 1:30pm UTC](https://forum.kirupa.com/t/retrograding-as3-0-to-as2-0/305843/1 "2010-03-04T13:30:39Z")

</div>

[FONT=“Arial”]Hi,

I have a problem. I have a flash movie that uses Actionscript 3.0 but the file I need to add it to uses Actionscript 2.0, so many of its functions do not work.

Can anyone give me an AS2.0 solution to my AS3.0 below?

Thanks!  
[/FONT]

[FONT=“Verdana”]stop();  
this.mymovie\_mc.buttonMode=true;

this.mymovie\_mc.addEventListener(MouseEvent.MOUSE\_OVER, gotoover);  
this.mymovie\_mc.addEventListener(MouseEvent.MOUSE\_OUT, gotoup);  
this.mymovie\_mc.addEventListener(MouseEvent.MOUSE\_DOWN, gotodown);  
this.mymovie\_mc.addEventListener(MouseEvent.MOUSE\_UP, backtoover);

function gotoover (Event:MouseEvent):void{  
this.mymovie\_mc.gotoAndStop(“over”);  
}

function gotoup (Event:MouseEvent):void{  
this.mymovie\_mc.gotoAndStop(“up”);  
}

function gotodown (Event:MouseEvent):void{  
this.mymovie\_mc.gotoAndStop(“down”);  
}

function backtoover (Event:MouseEvent):void{  
this.mymovie\_mc.gotoAndStop(“over”);  
}

stage.addEventListener(Event.MOUSE\_LEAVE, leavehandler);

function leavehandler (Evt:Event):void{  
this.mymovie\_mc.gotoAndStop(“up”);  
}[/FONT]
