function moveBoxes() { /* if mouse is inside the image scroller */ if((_root._ymouse > mainBoxHolder._y) && (_root._ymouse < (mainBoxHolder._y + mainBoxHolder._width))) { var mp = _root._xmouse; trace(mp + " > "+Stage.width); /* if mouse position is over half of stage then move the items to left */ if(mp > Stage.width / 2) { /* set direction to left */ curSpeed = -10; } /* else right */ else { /* set direction to right */ curSpeed = 10; } } /* set speed back to orginal speed */ else { curSpeed = defSpeed; } for(i=0;i