# AS3 to AS2 help

**URL:** <https://forum.kirupa.com/t/as3-to-as2-help/327865>\
**Category:** Uncategorized\
**Created:** [April 2, 2012, 2:40pm UTC](https://forum.kirupa.com/t/as3-to-as2-help/327865 "2012-04-02T14:40:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAGG0T](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@MAGG0T](https://forum.kirupa.com/u/MAGG0T)\
**Post date:** [April 2, 2012, 2:40pm UTC](https://forum.kirupa.com/t/as3-to-as2-help/327865/1 "2012-04-02T14:40:09Z")

</div>

[COLOR=#000000][FONT=verdana]Can anyone convert this AS3 code into AS2 for me please? [/FONT][/COLOR]

```auto
[COLOR=#000000][FONT=verdana]import fl.transitions.Tween;[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]import fl.transitions.easing.*;[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]overlogo_mc.visible = false;[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]function logoOver (event:MouseEvent):void {[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]overlogo_mc.visible = true;[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]overlogo_mc.gotoAndPlay(2);[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]// Function that reports mouse coordinates[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]function reportStageMouse(event:MouseEvent):void {[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]var myStageX:Number = Math.round(event.stageX);[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]var myStageY:Number = Math.round(event.stageY);[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]var xTween:Tween = new Tween(overlogo_mc, "x", Strong.easeOut, overlogo_mc.x, myStageX, 1, true);[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]var yTween:Tween = new Tween(overlogo_mc, "y", Strong.easeOut, overlogo_mc.y, myStageY, 1, true);[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]}[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]stage.addEventListener(MouseEvent.MOUSE_MOVE, reportStageMouse);[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]}[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]function logoOut (event:MouseEvent):void {[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]overlogo_mc.visible = false;[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]}[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]function logoClick (event:MouseEvent):void {[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]// Do whatever crap you want on click of logo[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]}[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]logo_mc.addEventListener(MouseEvent.ROLL_OVER, logoOver);[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]logo_mc.addEventListener(MouseEvent.ROLL_OUT, logoOut);[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]logo_mc.addEventListener(MouseEvent.CLICK, logoClick);[/FONT][/COLOR]

```

[COLOR=#000000][FONT=verdana]ill attach the fla would be great full![/FONT][/COLOR]
