-
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?
-
Gross Pecululatarian
What exactly do you mean? Easing to the mouse and carrying inertia?
Also, is this for F4 or F5?
-
Yeah easing to the mouse........F5
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|