[Golist] Time for me to use HydroTween

Joel Stransky joel at stranskydesign.com
Mon Nov 17 10:49:57 PST 2008


I'm having trouble setting up an event listener on a HydroSequence.Should be
something like this I assume.

seq1 = new HydroSequence();
seq1.addEventListener(GoEvent.COMPLETE, callBack);
seq1.addItem( { target:topBanner, scaleX:1, x:38, duration:1,
easing:Elastic.easeOut } );
seq1.addItem({target:topAccent, scaleX:1, duration:.5});

private function callBack(e:GoEvent):void
{
trace("callback: " + e.type);
}

any ideas?

On Thu, Nov 13, 2008 at 6:41 PM, Joel Stransky <joel at stranskydesign.com>wrote:

> Doh! My bad. I was using addStep instead of addItem.
> Thanks.
>
>
> On Thu, Nov 13, 2008 at 6:08 PM, Tollman Owens <tollman.owens at gmail.com>wrote:
>
>> I guess I'm kinda out of the loop. I don't use quotes for position ala
>> fuse for relative positioning with hydrotween, so that may or not be
>> the issue. also there are no easing params on the second step in the
>> sequence. that could also be the issue I can look  at it in a bit when
>> I'm back at a computer if you like
>>
>> t.o.
>>
>>
>> On 11/13/08, Joel Stransky <joel at stranskydesign.com> wrote:
>> > Working nicely so far. I'm just having an issue with creating
>> > non-paramertized HydroSequence instances.
>> > *this gives me implicit coercion errors*
>> > var seq1:HydroSequence;
>> > seq1 = new HydroSequence();
>> > seq1.addStep( { target:topBanner, scaleX:1, duration:.5,
>> easing:Back.easeOut
>> > } );
>> > seq1.addStep( { target:topBanner, x:"10" } );
>> >
>> > 1118: Implicit coercion of a value with static type Object to a possibly
>> > unrelated type org.goasap.interfaces:IPlayable.
>> >
>> > But this works,
>> > var seq1:HydroSequence;
>> > seq1 = new HydroSequence({ target:topBanner, scaleX:1, duration:.5,
>> > easing:Back.easeOut }, { target:topBanner, x:"10" });
>> >
>> > Not a huge deal, just wondering if theres a way to get the first method
>> to
>> > work.
>> >
>> > --Joel Stransky
>> > stranskydesign.com
>> >
>>
>> _______________________________________________
>> GoList mailing list
>> GoList at goasap.org
>> http://goasap.org/mailman/listinfo/golist_goasap.org
>>
>
>
>
> --
> --Joel Stransky
> stranskydesign.com
>



-- 
--Joel Stransky
stranskydesign.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://goasap.org/pipermail/golist_goasap.org/attachments/20081117/8ab3c344/attachment.html>


More information about the GoList mailing list