hello any one help i have a movie containing lots of images which when an image is pressed loads another movie (loadmovie) i used some code i found from here:
onClipEvent (load) {
speed = 0;
center = 225;
w = _width/1;
}
onClipEvent (enterFrame) {
speed = (_root._xmouse-center)/10;
_x -= speed;
(_x<=center-w)?(_x=center-w):null;
(_x>=center+w)?(_x=center+w):null;
updateAfterEvent();
}
when i move the mouse left or right on the stage the movie moves in turn left or right however i would like the movie only to move left and right when the mouse is directly over that movie and not when the mouse is on other parts of my stage, do i have to put these in a button and use the rollover?? or can it just be scripted
onClipEvent (load) {
speed = 0;
center = 225;
w = _width/1;
}
onClipEvent (enterFrame) {
speed = (_root._xmouse-center)/10;
_x -= speed;
(_x<=center-w)?(_x=center-w):null;
(_x>=center+w)?(_x=center+w):null;
updateAfterEvent();
}
when i move the mouse left or right on the stage the movie moves in turn left or right however i would like the movie only to move left and right when the mouse is directly over that movie and not when the mouse is on other parts of my stage, do i have to put these in a button and use the rollover?? or can it just be scripted