Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How do I stop my scrolling effect in Flash

Posted on 2010-08-23
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

chorejason earned 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

704 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