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.
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")
}