[Golist] HydroTween Updates

donovan at hydrotik.com donovan at hydrotik.com
Sun Aug 3 13:05:57 PDT 2008


Hi all.

I was hoping to hold off in order to figure out why Sequencing is not
working with the 0.5.1b update and do some more extensive testing, although
I wanted to keep you guys informed on the progress in light of the emails.
Consider this a soft update as some of these features haven¹t been
thoroughly tested yet. Because of this I have only updated the SVN. See
below the updates for more info.

So there are some new files associated with HydroTween now.

HydroSequence.as
PV3DRenderManager.as
HydroTween.as
IPV3DRenderManager.as
IRenderable.as

http://code.google.com/p/goplayground/source/browse/#svn/trunk/DonovanAdams/
src/com/hydrotik/go



Arguments have been added to HydroTween.go() calls:

HydroTween.go(target, {x:200}, 2, 0, Linear.easeNone, completeFunction,
updateFunction, ["Hello Complete Arguments"], [³Hello Update Arguements²]);

This may conflict with previous syntax if you are using additional arguments
extra easing params, etc.


A PV3DRenderManager class has been added to perform a global update to a
veiwport/camera/renderer.
Works the same way with HydroTween.init3D(); However this is only called
once per pulse.
I have not had a chance to test this in a PV3D scene yet, but the Manager is
working. If someone could give this a test drive that would be great.

 It has been suggested that you have the ability to render more then one
viewport. If this is the case I would suggest simply using another update
method and update your renderer that way. I may change the way
PV3DRenderManager works, and/or add more functionality for PV3D render
control, but use the individual update in the meantime.


I fixed a but with complete and update methods being called multiple times
when tweening an array of DisplayObjects

I made the IDENTITY a public constant. To reset the value of any ColorMatrix
tween you can pass HydroTween.IDENTITY to tween back to the original visual
state of a target. This works for color, brightness, hue, saturation,
matrix, contrast, and tint.

HydroTween.go(target, {color: HydroTween.IDENTITY}, 2, 0, Linear.easeNone);


I have added update and complete props to HydroSequence. FYI I¹m using
updater instead of update to avoid a naming conflict.
goItem.addItem({func:trace, args:["HELLO WORLD"]});
goItem.addItem({target:target, color:0xFF00FF, duration:.5, updater:trace,
updaterArgs:["Updating!"], scope:this});



I have also added per Gils request:

/**
>           * Added by Pickle: Add a  property using genericRead and
> genericWrite
>            *  @param     newProp    New Property name
>            **/
>         public  static function addProperty(newProp:String) {
>              if (!  _propertyList.hasOwnProperty(newProp))
>                   _propertyList[newProp] = {prop:newProp, read:genericRead,
> write:genericWrite};
        }

HydroTween.addProperty("zoom");  // add zooming for  Papervision3D
Haven¹t tested this yet.



Like I said this HydroTween 0.5.1 rev40 is not working with 0.5.1b at the
moment. I¹m quite swamped and will figure out what¹s going on soon. I just
wanted to put these updates out there and ask that they be tested and to
give you all some idea as to the inclusion of requests and how they have
been implemented. Then I will make a formal post and update the SVN if
everything looks good.

If you can¹t update via SVN contact me offlist and I will email you the
files.

I¹m also going to post info on an ANT script and installing svnant for
automating these updates.


Cheers,
Donovan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080803/c27c7448/attachment.html 


More information about the GoList mailing list