Looping, playing, skipping

  • From: <remy.rakic@gmail.com>
  • To: dev@trident.kenai.com
  • Subject: Looping, playing, skipping
  • Date: Thu, 9 Jul 2009 09:23:24 +0000 (GMT)

Hey Kirill, again :)

I was playing around with the skipping and i came across some behavior
i wanted to check with you. Here's the use case i was implementing,
bear in mind it's the first thing that popped into my mind that would
allow what i consider a slice of useful functionnality, not a real life
use case i have. It's still about the pulsating button when the mouse
is over it.

Once a timeline has been looped, it seems you can't play it non looping
anymore. I think it's probably because cancel() and
cancelAtCycleBreak() are not marking the timeline as not looping.

What is the difference between timelinePosition and durationFraction,
it seems they are the same ?

I was wondering why is reverse playing a looping timeline throwing an
exception, i thought it would just playReverse the current cycle and
then stop. The cancelAtCycleBreak feature is interesting, however in
this use case, if the mouse enters and leaves the button quickly, the
timeline will always perform a full cycle back and forth, where a
fraction of a cycle should be played in reverse.

The skipping feature takes how many ms to skip, and using the
timelinePosition/durationFraction usually means multiplying it by the
timeline duration, however if your code refers to generic timelines and
not specific instances, the timeline does not offer a way to get its
duration :) If you're using specific instances, you obviously know how
long they last, so it's not a problem there. 

Thanks
Rémy

Looping, playing, skipping

remy.rakic 07/09/2009

Re: Looping, playing, skipping

Kirill Grouchnikov 07/10/2009

Re: Looping, playing, skipping

Kirill Grouchnikov 07/23/2009

<Possible follow-up(s)>

Re: Re: Looping, playing, skipping

remy.rakic 07/10/2009

Re: Re: Looping, playing, skipping

Kirill Grouchnikov 07/10/2009
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close