How do I stop my scrolling effect in Flash

Posted on 2010-08-23
Last Modified: 2013-11-11
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?


onClipEvent (load)
onClipEvent (enterFrame)
   var distance=_root._ymouse-ycenter;
   if (_y > 0) _y=-2000;
   if (_y < -2000) _y=0;

Open in new window

Question by:Leroice
  • 2

Accepted Solution

chorejason earned 500 total points
ID: 33507877
Try this:

onClipEvent (enterFrame)
   var distance=_root._ymouse-ycenter;

   if (_y < 0 && _y > -2000)


Expert Comment

ID: 33551126
Hi, was my comment helpfull? Did it solve your problem?

Author Closing Comment

ID: 33552139
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


Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flash media server 1 332
Can't find all of the preferences on Flash Pro 2 486
How to display a webpage in a flash 10 361
free flash maker 5 212
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question