[Golist] Using Go w/HydroTween (2)
Cedric M. analogdesign
newsl at analogdesign.ch
Mon Jan 21 06:22:40 PST 2008
Hi there,
I'm currently trying out hydrotween.
I've just a quick question about Hydrotween:
This is the example syntax from Donovan::
HydroTween.go(mc, {width:300}, 2, 0, Quintic.easeInOut, onCompleteHandler);
I guess the following is legal? Are they both legal?
var tweenHydro01 = new HydroTween(mc,{width:760},0,2,Quintic.easeInOut,
onCompleteHandler);
tweenHydro01.start();
However the complete handler returns an error:
Erro#1009 impossible to access property or method from a null object
Line 183 _htweens[this] = null;
Which is obviously caused by the fact that _htweens is void when you doesn't
use go(...):
Because the following isn't called
_htweens = new Dictionary(true);
_htweens[ go] = 1;
In addition one little remark:
Order of delay and duration are inverted between go(..) and new
HydroTween(...) which may be disturbing:
public function HydroTween(
target : * = null,
propsTo : Object = null,
------------------------> delay : Number = NaN,
------------------------> duration : Number = NaN,
easing : Function = null,
closure : Function = null,
update : Function = null) {
public static function go( target : * = null, propsTo : Object = null,
duration : Number = NaN, delay : Number = NaN, easing : Function = null,
closure : Function = null, update : Function = null) : void {
Thank you for your interest and your answers.
Best regards.
Cedric M. (aka maddec)
----------------------------------------------------
http://analogdesign.ch
http://analogdesign.ch/blog
visual & interactive communication
----------------------------------------------------
More information about the GoList
mailing list