Moving scene to left and right - MOUSE_OVER
Hi guys,
i dont work in Flash for a 2 years and i forgot lots of my AS 3.0 knowledge.
What is the most effective way to make my scene moving to left and right?
I start file like this:
- wide movieclip "Scena_mc"
- at left and right side there are movieclips for navigation ("Nav_L_mc" and "Nav_R_mc")
/////////////////////////////////////////////////////////
Nav_L_mc.addEventListener(MouseEvent.MOUSE_OVER, Nav_L_Over);
Nav_L_mc.addEventListener(MouseEvent.ENTER_FRAME, run);
function Nav_L_Over(e:MouseEvent){
Scena_mc.x += 10;
}
function Nav_R_Over(e:MouseEvent){
Scena_mc.x -= 10;
}
//////////////////////////////////////////////////////
but how can I do it repeatly as lond as the mouse is over?
Thaks guys a lot ![]()
