[Golist] HydroTween- how cn I add an update function to an sequence Item?

Gil Birman gil at allflashwebsite.com
Sun Aug 3 12:20:19 PDT 2008


Ok, this has been bothering me, so here it is...

add these two lines to HydroSequence.as in the parseAction function

                    else if (prop == "onUpdate")
                        tween.addCallback(action[prop], GoEvent.UPDATE);


(directly before this line:   else if (prop == "func") // delay, duration,
etc.)

... now this works:

var seq:HydroSequence = new HydroSequence( { target: hoo, x:199,
onUpdate:uu, duration: 2 } );
seq.start();
function uu() {
  trace("now this works");
}

Donovan please consider adding this.

Gil

On Sat, Aug 2, 2008 at 4:08 PM, Gil Birman <gil at allflashwebsite.com> wrote:

>
> The "update" property is mysteriously missing when forming a sequence.
> Hopefully it will be added eventually :)
> Gil
>
> On Fri, Aug 1, 2008 at 8:26 AM, Burak Delice <burak at delizade.com> wrote:
>
>>  (somebody stop burak!) I forget to ask in prev. message : how can I
>> state an update function for a sequence Item ?
>>
>>
>> var sq: HydroSequence(
>> {target:mc,x100},
>> {target:mc,y100});
>> sq.start();
>>
>> function update(){
>> // I want to link this function to sq HydroSequence's FIRST Item
>>
>> }
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080803/6ff0a15b/attachment.html 


More information about the GoList mailing list