Click to See Complete Forum and Search --> : Image Scroll- Accell and Deccel

03-17-2002, 08:52 PM
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?

Ed Mack
03-18-2002, 06:39 AM
What exactly do you mean? Easing to the mouse and carrying inertia?

Also, is this for F4 or F5?

03-18-2002, 01:48 PM
Yeah easing to the mouse........F5

03-20-2002, 03:31 AM
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