[Golist] HydroTween- custom numeric parameter's tweens
Burak Delice
burak at delizade.com
Thu Jul 31 10:27:48 PDT 2008
greate, thanx!.
----- Original Message -----
From: Donovan Adams
To: golist at goasap.org
Sent: Thursday, July 31, 2008 5:54 PM
Subject: Re: [Golist] HydroTween- custom numeric parameter's tweens
var1 isn't a supported property unless you add it to HydroTween. Which is perfectly fine and easy to do. Add this to line 311 in HydroTween (After the Making Things prop declarations in the init() method):
code
// GENERIC VAR
_propertyList["val"] = {prop:"val", read:genericRead, write:genericWrite};
/code
Now that "val" is a supported property, HydroTween will tween it using the genericRead and genericWrite methods. Now you can do:
private var _mc : MovieClip;
...
_mc = new MovieClip();
_mc.val = 100;
HydroTween.go(_mc, {val:300}, 3, 0, Quadratic.easeOut, null, check);
...
private function check():void{
trace(_mc["val"]);
}
<hr />
hi,
i tried to tween a variable like this :
mc= new MovieClip();
mc.var1 = 0;
HydroTween.go(mc, {var1:100}, .3, 0, Elastic.easeOut, null, up);
public function up() : void {
trace(mc["var1"]);
}
or
private var var1:Number;
....
var1 = 0;
HydroTween.go(this, {var1:100}, .3, 0, Elastic.easeOut, null, up);
public function up() : void {
trace("var1");
}
but, value is not increased. always 0. how can I do that?
regards
----- Original Message -----
From: Gil Birman
To: Mailing list for the Go ActionScript Animation Platform
Sent: Wednesday, July 30, 2008 10:35 PM
Subject: Re: [Golist] HydroTween init3D
From what Moses said, it would be nice if there were a "3D" property or something to indicate that a tween wants render(..) to be called on update. Also, is it unreasonable to assume that you'll want to use multiple 3d viewports? If so, maybe 3D should be more than merely an on/off flag, and allow you to specify a renderer...
HydroSequence( { target:planeA...., 3D: renderer1 } );
HydroSequence( { target:planeB, ...., 3D: renderer2 } );
Gil
----------------------------------------------------------------------------
_______________________________________________
GoList mailing list
GoList at goasap.org
http://goasap.org/mailman/listinfo/golist_goasap.org
__________ Informazione NOD32 3302 (20080728) __________
Questo messaggio h stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it
------------------------------------------------------------------------------
_______________________________________________
GoList mailing list
GoList at goasap.org
http://goasap.org/mailman/listinfo/golist_goasap.org
__________ Informazione NOD32 3302 (20080728) __________
Questo messaggio h stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080731/6328b452/attachment-0001.html
More information about the GoList
mailing list