A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Image Scroll- Accell and Deccel

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    6
    I'm making an image scroller with the following actionscript to get it to react to mouse movement. Hard to explain...see url http://www.sixways.tv/imagescroll.htm

    Here is the actionscript...

    // hmv-=movie width
    hmv = 548;
    hmn = getProperty("/menu", _width);
    y = getProperty("/drag", _y);
    x = getProperty("/drag", _x);
    // define where active
    if (Number(x)>0 and Number(x)<548 and Number(y)>0 and Number(y)<70) {
    setProperty ("/menu", _x, Number(-x*hmn/hmv)+Number(x));
    }

    What would I add to give it acceleration and deceleration characteristics?

  2. #2
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    What exactly do you mean? Easing to the mouse and carrying inertia?

    Also, is this for F4 or F5?

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    6
    Yeah easing to the mouse........F5

  4. #4
    Member
    Join Date
    Dec 2001
    Posts
    73
    Originally posted by massekotti
    Yeah easing to the mouse........F5
    So search for EASING here in the forums and u won't believe yourself of the number of threads u will get

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center