[Tweener] Mouse-Drag Tweening

Sascha sbalkau at gmail.com
Tue Dec 16 04:51:54 PST 2008


Thanks! So much for the easy part. But let's say you want to increase the
speed of the tweening the further the mouse y position goes from it's origin
(the coord where the user clicked and held the button), either up or down.
How do you calculate this value from the mouse positions?
I'm calculating the distance between origin mouseY and current mouseY but I
don't know how to translate this value into a useful value for Tweeners
tween speed property. Would be great to hear any ideas.

Sascha


> -----Original Message-----
> From: tweener-bounces at lists.caurinauebi.com [mailto:tweener-
> bounces at lists.caurinauebi.com] On Behalf Of Makc
> Sent: Tuesday, December 16, 2008 18:01
> To: tweener at lists.caurinauebi.com
> Subject: Re: [Tweener] Mouse-Drag Tweening
> 
> you can compute targets depending on mouse coords and start tweens on
> mouseMove event if the button is down
> 
> On Tue, Dec 16, 2008 at 6:56 AM, Sascha <sbalkau at gmail.com> wrote:
> > Hi List,
> >
> > I have a job task that requires a number of movieclips to scroll
> upwards or
> > downwards depending on the user dragging the mouse up or down, kind
> of like
> > scrubbing a wheel. I'm using Tweener to animate the clips and at the
> moment
> > I have absolutely no clue how I could implement this. Has anyone ever
> made
> > such kind of a user-interaction and is it possible to do this with
> Tweener?
> >
> > Thanks,
> > Sascha
> >
 



More information about the Tweener mailing list