[Golist] Time for me to use HydroTween

Joel Stransky joel at stranskydesign.com
Mon Nov 17 11:38:09 PST 2008


That will work just fine. Thanks Donovan.

Seems like one should be able to tie into the events dispatched by the
classes HydroSequence extends. Perhaps I'll tinker with it later. For now
functions as a sequence item works well.

On Mon, Nov 17, 2008 at 2:15 PM, Donovan Adams <donovan at hydrotik.com> wrote:

> Hi Joel, H.S. isn't set up for event listeners. But you could do:
>
> 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});
> seq1.addItem({func: callBack});
>
> private function callBack():void
> {
> trace("callBack()");
> }
>
>
>
> -------- Original Message --------
> > From: "Joel Stransky" <joel at stranskydesign.com>
> > Sent: Monday, November 17, 2008 6:53 AM
> > To: "Mailing list for the Go ActionScript Animation Platform"
> <golist at goasap.org>
> > Subject: Re: [Golist] Time for me to use HydroTween
> >
> > 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
> >
> > _______________________________________________
> > GoList mailing list
> > GoList at goasap.org
> > http://goasap.org/mailman/listinfo/golist_goasap.org
>
>
>
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org
>



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


More information about the GoList mailing list