[Tweener] Mouse-Drag Tweening
Makc
makc.the.great at gmail.com
Tue Dec 16 05:01:09 PST 2008
you dont need to do that. if you pass constant time to tweener (like
500ms) but user moves his mouse over greater distance, this will
naturally result in higher speed - it is necessary to cover greater
distance in the same time.
On Tue, Dec 16, 2008 at 2:51 PM, Sascha <sbalkau at gmail.com> wrote:
> 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
>> >
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
More information about the Tweener
mailing list