That will work just fine. Thanks Donovan.<br><br>Seems like one should be able to tie into the events dispatched by the classes HydroSequence extends. Perhaps I&#39;ll tinker with it later. For now functions as a sequence item works well.<br>
<br><div class="gmail_quote">On Mon, Nov 17, 2008 at 2:15 PM, Donovan Adams <span dir="ltr">&lt;<a href="mailto:donovan@hydrotik.com">donovan@hydrotik.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Joel, H.S. isn&#39;t set up for event listeners. But you could do:<br>
<div class="Ih2E3d"><br>
seq1 = new HydroSequence();<br>
seq1.addEventListener(GoEvent.COMPLETE, callBack);<br>
seq1.addItem( { target:topBanner, scaleX:1, x:38, duration:1,<br>
easing:Elastic.easeOut } );<br>
seq1.addItem({target:topAccent, scaleX:1, duration:.5});<br>
</div>seq1.addItem({func: callBack});<br>
<br>
private function callBack():void<br>
{<br>
trace(&quot;callBack()&quot;);<br>
<div class="Ih2E3d">}<br>
<br>
<br>
<br>
-------- Original Message --------<br>
&gt; From: &quot;Joel Stransky&quot; &lt;<a href="mailto:joel@stranskydesign.com">joel@stranskydesign.com</a>&gt;<br>
&gt; Sent: Monday, November 17, 2008 6:53 AM<br>
&gt; To: &quot;Mailing list for the Go ActionScript Animation Platform&quot;<br>
</div><div><div></div><div class="Wj3C7c">&lt;<a href="mailto:golist@goasap.org">golist@goasap.org</a>&gt;<br>
&gt; Subject: Re: [Golist] Time for me to use HydroTween<br>
&gt;<br>
&gt; I&#39;m having trouble setting up an event listener on a HydroSequence.Should<br>
be<br>
&gt; something like this I assume.<br>
&gt;<br>
&gt; seq1 = new HydroSequence();<br>
&gt; seq1.addEventListener(GoEvent.COMPLETE, callBack);<br>
&gt; seq1.addItem( { target:topBanner, scaleX:1, x:38, duration:1,<br>
&gt; easing:Elastic.easeOut } );<br>
&gt; seq1.addItem({target:topAccent, scaleX:1, duration:.5});<br>
&gt;<br>
&gt; private function callBack(e:GoEvent):void<br>
&gt; {<br>
&gt; trace(&quot;callback: &quot; + e.type);<br>
&gt; }<br>
&gt;<br>
&gt; any ideas?<br>
&gt;<br>
&gt; On Thu, Nov 13, 2008 at 6:41 PM, Joel Stransky<br>
&lt;<a href="mailto:joel@stranskydesign.com">joel@stranskydesign.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; Doh! My bad. I was using addStep instead of addItem.<br>
&gt; &gt; Thanks.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Nov 13, 2008 at 6:08 PM, Tollman Owens<br>
&lt;<a href="mailto:tollman.owens@gmail.com">tollman.owens@gmail.com</a>&gt;wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; I guess I&#39;m kinda out of the loop. I don&#39;t use quotes for position<br>
ala<br>
&gt; &gt;&gt; fuse for relative positioning with hydrotween, so that may or not be<br>
&gt; &gt;&gt; the issue. also there are no easing params on the second step in the<br>
&gt; &gt;&gt; sequence. that could also be the issue I can look &nbsp;at it in a bit<br>
when<br>
&gt; &gt;&gt; I&#39;m back at a computer if you like<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; t.o.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On 11/13/08, Joel Stransky &lt;<a href="mailto:joel@stranskydesign.com">joel@stranskydesign.com</a>&gt; wrote:<br>
&gt; &gt;&gt; &gt; Working nicely so far. I&#39;m just having an issue with creating<br>
&gt; &gt;&gt; &gt; non-paramertized HydroSequence instances.<br>
&gt; &gt;&gt; &gt; *this gives me implicit coercion errors*<br>
&gt; &gt;&gt; &gt; var seq1:HydroSequence;<br>
&gt; &gt;&gt; &gt; seq1 = new HydroSequence();<br>
&gt; &gt;&gt; &gt; seq1.addStep( { target:topBanner, scaleX:1, duration:.5,<br>
&gt; &gt;&gt; easing:Back.easeOut<br>
&gt; &gt;&gt; &gt; } );<br>
&gt; &gt;&gt; &gt; seq1.addStep( { target:topBanner, x:&quot;10&quot; } );<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; 1118: Implicit coercion of a value with static type Object to a<br>
possibly<br>
&gt; &gt;&gt; &gt; unrelated type org.goasap.interfaces:IPlayable.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; But this works,<br>
&gt; &gt;&gt; &gt; var seq1:HydroSequence;<br>
&gt; &gt;&gt; &gt; seq1 = new HydroSequence({ target:topBanner, scaleX:1, duration:.5,<br>
&gt; &gt;&gt; &gt; easing:Back.easeOut }, { target:topBanner, x:&quot;10&quot; });<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Not a huge deal, just wondering if theres a way to get the first<br>
method<br>
&gt; &gt;&gt; to<br>
&gt; &gt;&gt; &gt; work.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; --Joel Stransky<br>
&gt; &gt;&gt; &gt; <a href="http://stranskydesign.com" target="_blank">stranskydesign.com</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; GoList mailing list<br>
&gt; &gt;&gt; <a href="mailto:GoList@goasap.org">GoList@goasap.org</a><br>
&gt; &gt;&gt; <a href="http://goasap.org/mailman/listinfo/golist_goasap.org" target="_blank">http://goasap.org/mailman/listinfo/golist_goasap.org</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; --Joel Stransky<br>
&gt; &gt; <a href="http://stranskydesign.com" target="_blank">stranskydesign.com</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; --Joel Stransky<br>
&gt; <a href="http://stranskydesign.com" target="_blank">stranskydesign.com</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; GoList mailing list<br>
&gt; <a href="mailto:GoList@goasap.org">GoList@goasap.org</a><br>
&gt; <a href="http://goasap.org/mailman/listinfo/golist_goasap.org" target="_blank">http://goasap.org/mailman/listinfo/golist_goasap.org</a><br>
<br>
<br>
<br>
_______________________________________________<br>
GoList mailing list<br>
<a href="mailto:GoList@goasap.org">GoList@goasap.org</a><br>
<a href="http://goasap.org/mailman/listinfo/golist_goasap.org" target="_blank">http://goasap.org/mailman/listinfo/golist_goasap.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--Joel Stransky<br><a href="http://stranskydesign.com">stranskydesign.com</a><br>