slowing down the positioning of a movieclip

Posted on 2005-05-05
Last Modified: 2010-04-03

I have the following code that when the user rollsover a movieclip it goes up or down...the up selection is good...but when I make the movie slide down and it reaches where it is stays there...which is good but when I move the mouse hight to select goes really fast back up again.  basically I need the movie clip to slide up and down smoothly...when I reach the top I will be able to select things and when I reach the bottom be able to have time to select things...

d = this._ymouse
if(d < 300)d = 300;
if(d > 600)d = 900
arrowY._y += (d - arrowY._y) / delay * 2
menu._y = -150 - ((arrowY._y * 530) / 300)
Question by:johanwilches
    LVL 27

    Accepted Solution

    theBiggerTheFaster = 0.8;
    d = this._ymouse
    if(d < 300)d = 300;
    if(d > 600)d = 600;
    arrowY._y += (d - arrowY._y) / delay * theBiggerTheFaster;
    menu._y = -150 - ((arrowY._y * 530) / 300)

    Author Comment

    thank you negative...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    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.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now