# Moving big movieclip with mouseover on movieclips

**URL:** <https://forum.kirupa.com/t/moving-big-movieclip-with-mouseover-on-movieclips/313986>\
**Category:** flash\
**Created:** [September 15, 2010, 2:21pm UTC](https://forum.kirupa.com/t/moving-big-movieclip-with-mouseover-on-movieclips/313986 "2010-09-15T14:21:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![supermagneet](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@supermagneet](https://forum.kirupa.com/u/supermagneet)\
**Post date:** [September 15, 2010, 2:21pm UTC](https://forum.kirupa.com/t/moving-big-movieclip-with-mouseover-on-movieclips/313986/1 "2010-09-15T14:21:30Z")

</div>

Hello, i’m kinda new to actionscript but im trying to find out how to realise a banner i am making.

I have 1 big movieclip thats about 5x larger then what is shown, i have 4 movieclips each on each side of the movieclip, left, right, up and down.

The idea is that when i hover on 1 of the movieclips the big movie clip moves that way until the mouse isn’t hovering above it or when the movieclip reaches the end of the side.

I have given a mouse listener event to each movieclip on the side, the trace works well, but i i don’t know how to make the big movieclip move when i hover the side, i hope someone can give me some pointers on how to proceed.

```auto
stop();

import flash.events.MouseEvent; 

leftMove.addEventListener(MouseEvent.MOUSE_OVER,move_left);

function move_left(event_object:MouseEvent) {
    trace("mouse_left")

}

rightMove.addEventListener(MouseEvent.MOUSE_OVER,move_right);

function move_right(event_object:MouseEvent) {
    trace("mouse_right")
}

upMove.addEventListener(MouseEvent.MOUSE_OVER,move_up);

function move_up(event_object:MouseEvent) {
    trace("mouse_up")
}

downMove.addEventListener(MouseEvent.MOUSE_OVER,move_down);

function move_down(event_object:MouseEvent) {
    trace("mouse_down")
}

```
