I am trying to make an image scroll from top to bottom. As ur mouse goes over it, you can scroll it back up or down. It stops at the top and bottom. But I can’t get it to have a default scrolling speed and direction for when there is no mouse on it. Here is the code I have on the movie clip! Thanks!
onClipEvent (load)
{
ycenter=150;
speed=1/30;
}
onClipEvent (enterFrame)
{
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > 800) _y=800;
if (_y < -535) _y=-535;
}
The if statements stop it at the top and bottom. I still need those to work after we get it to start scrolling. I need it to act as if the mouse is already at the top of the .swf file. Thank you!
-L