[Flashcoders] time based smooth animation w/ GTween. HELP!

2009-09-11 Thread Isaac Alves
Hello!

I would like to create a time based and very smooth animation with
GTween (or another one).
But I´m used to GTween , though.

here is my code:

var plantaTween = new GTween(planta, 1.5, {y: 414}, {delay: 0.8,
reversed: true, reflect: true, repeat: 999, ease:Quartic.easeInOut});

I´ve read the following examples in Gtween´s documentation and
somewhere else but i can-t quite understand it ..

 GTween.timingMode = GTween.TIME;

at http://www.gskinner.com/blog/archives/2008/08/gtween_a_new_tw.html

should I use:
  plantaTween.timingMode = GTween.TIME;
or:
  GTween.timingMode = GTween.TIME; ?

What does the latter exactly means? it doesn´t do nothing. maybe cause
the default timeInterval property is 25ms. how do i set it ?

the first one throws a reference error Error #1056:

and i-ve seen this also at the documentation
http://www.gskinner.com/libraries/gtween/docs/

 Implementation
 public static function get timeInterval():uint
 public function set timeInterval(value:uint):void

 Implementation
 public static function get timingMode():String
 public function set timingMode(value:String):void

but cannot figure out how to implement it...

help ! thanks !

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] time based smooth animation w/ GTween. HELP!

2009-09-11 Thread Joel Stransky
Grant has now merged forces with Jack Doyle, author of TweenLite, TweenMax
and TweenGroup. The syntax is almost identical and I think you'll have an
easier time achieving the effect you want. A tweens pulse can be updated
via a setInterval, use of a Timer object, based on the milliseconds a flash
movie has been running (getTime) or Enter_Frame events. Enter_Frame has
proven to be the most reliable but due to differences in computer speed and
network conditions none of them are bullet proof. TweenLite, I believe uses
a combination of enter_frame and a Timer where the pulse is updated via
enter_frame and the Timer object is then used to determine exactly which
frame of the tween is to be rendered. This means if for some reason the
flash movie lags, you may see a jump in animation in order to complete in
the time you've allotted. You do not have to specify this when using
TweenLite but keep in mind your movies framerate, the distance of the tween
and the amount of time you are allowing for the tween to finish all factor
in to the smoothness of playback.

On Fri, Sep 11, 2009 at 10:48 AM, Isaac Alves isaacal...@gmail.com wrote:

 Hello!

 I would like to create a time based and very smooth animation with
 GTween (or another one).
 But I´m used to GTween , though.

 here is my code:

 var plantaTween = new GTween(planta, 1.5, {y: 414}, {delay: 0.8,
 reversed: true, reflect: true, repeat: 999, ease:Quartic.easeInOut});

 I´ve read the following examples in Gtween´s documentation and
 somewhere else but i can-t quite understand it ..

 GTween.timingMode = GTween.TIME;

 at http://www.gskinner.com/blog/archives/2008/08/gtween_a_new_tw.html

 should I use:
  plantaTween.timingMode = GTween.TIME;
 or:
  GTween.timingMode = GTween.TIME; ?

 What does the latter exactly means? it doesn´t do nothing. maybe cause
 the default timeInterval property is 25ms. how do i set it ?

 the first one throws a reference error Error #1056:

 and i-ve seen this also at the documentation
 http://www.gskinner.com/libraries/gtween/docs/

 Implementation
 public static function get timeInterval():uint
 public function set timeInterval(value:uint):void

 Implementation
 public static function get timingMode():String
 public function set timingMode(value:String):void

 but cannot figure out how to implement it...

 help ! thanks !

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders