# Can this be cleaned up?

**URL:** <https://forum.kirupa.com/t/can-this-be-cleaned-up/300352>\
**Category:** flash\
**Created:** [November 19, 2009, 5:06pm UTC](https://forum.kirupa.com/t/can-this-be-cleaned-up/300352 "2009-11-19T17:06:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apos03](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Apos03](https://forum.kirupa.com/u/Apos03)\
**Post date:** [November 19, 2009, 5:06pm UTC](https://forum.kirupa.com/t/can-this-be-cleaned-up/300352/1 "2009-11-19T17:06:02Z")

</div>

Can this be cleaned up in anyway? It works as I need it but just seems a bit redundant in some areas? I am not proficient enough with AS3 to see what can be tidied up.

```auto

import fl.transitions.*; 
import fl.transitions.easing.*;

button1.addEventListener(MouseEvent.MOUSE_OVER, moveOrangeBox1);
function moveOrangeBox1 (e:MouseEvent):void{
    var myTween1:Tween = new Tween(orange, "x", Regular.easeOut, orange.x, 712.15, .5, true);
    }
    
button2.addEventListener(MouseEvent.MOUSE_OVER, moveOrangeBox2);
function moveOrangeBox2 (e:MouseEvent):void{
    var myTween2:Tween = new Tween(orange, "x", Regular.easeOut, orange.x, 742.4, .5, true);
    }

button3.addEventListener(MouseEvent.MOUSE_OVER, moveOrangeBox3);
function moveOrangeBox3 (e:MouseEvent):void{
    var myTween3:Tween = new Tween(orange, "x", Regular.easeOut, orange.x, 773.4, .5, true);
    }

button4.addEventListener(MouseEvent.MOUSE_OVER, moveOrangeBox4);
function moveOrangeBox4 (e:MouseEvent):void{
    var myTween4:Tween = new Tween(orange, "x", Regular.easeOut, orange.x, 803.4, .5, true);
    }

```
