Leroice
asked on
How do I stop my scrolling effect in Flash
Hey Guys
I have this setup where I want the movieClip to scroll up and down the page but it seems to flick back to the beginning.
It's kinda hard to explain but I have attached the swfs and code that run the scrolling effect for you to have a look at and get an idea of what is happening.
I just want the bio.swf file to stop at the top and bottom of itself and not "repeat" itself. I don't really know why it is.
Any help as to what I'm doing wrong?
Thanks
L
Bio.swf
I have this setup where I want the movieClip to scroll up and down the page but it seems to flick back to the beginning.
It's kinda hard to explain but I have attached the swfs and code that run the scrolling effect for you to have a look at and get an idea of what is happening.
I just want the bio.swf file to stop at the top and bottom of itself and not "repeat" itself. I don't really know why it is.
Any help as to what I'm doing wrong?
Thanks
L
onClipEvent (load)
{
ycenter=600
;
speed=1/10;
}
onClipEvent (enterFrame)
{
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > 0) _y=-2000;
if (_y < -2000) _y=0;
}
JanetMain.swfBio.swf
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi, was my comment helpfull? Did it solve your problem?
ASKER
Hey Jason
Sorry for the late reply - just saw this now.
I just tried it and it worked great! Thanks heaps. The only problem is that when it stops it doesn't head back the other way. I need it to continue to scroll back and forth. Do I need to ask another question or can this code be edited to achieve that.
Thanks again
Leigh
Sorry for the late reply - just saw this now.
I just tried it and it worked great! Thanks heaps. The only problem is that when it stops it doesn't head back the other way. I need it to continue to scroll back and forth. Do I need to ask another question or can this code be edited to achieve that.
Thanks again
Leigh