Thanks for the suggestion, Donovan.<div>I had to modify your example to fit my code, and this is what i came up with:</div><div><br></div><div>// start code</div><div><div>__sequence = new Sequence();<br></div><div><div>__sequence.addEventListener(&quot;START&quot;, onSeqEvent, false, 0, true);</div>
<div>__sequence.addEventListener(&quot;CYCLE&quot;, onSeqEvent, false, 0, true);</div><div>__sequence.repeater.cycles = Repeater.INFINITE;</div></div><div><br></div><div>// The following code resides in another function. As you can see, the sequence needs to be dynamically created:</div>
<div><br></div><div>__sequence.addStep(new HydroTween(null, { func:functionOne, args:[whatever] } ));<br></div><div>__sequence.addStep(new HydroTween(null, { func:functionTwo } ));<br></div><div>__sequence.addStep(new HydroTween(__fader, { start_alpha:1, alpha:0, duration:__duration_fade } ));<br>
</div><div>__sequence.addStep(new HydroTween(null, { delay:Number(properties.@timeout) || __duration_timeout, func:trace, args:[&#39;timeout triggered&#39;] } ));<br></div></div><div>__sequence.start();</div><div>// end code</div>
<div><br></div><div>The weird thing is that none of the events are being dispatched at all. On top of that, my &quot;timeout triggered&quot; trace is not showing on my output anymore.</div><div>Is there anything else I can try?</div>
<div><br></div><div>Thanks a bunch,</div><div><br clear="all">Bernardo Kuri<br>
<br><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 1:45 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It seems there is an issue with the autoGC feature and passing a param into<br>
HydroSequence.<br>
<br>
The reason it&#39;s not repeating is that HydroTween is clearing out the memory<br>
of the tweens in a sequence.<br>
<br>
I will have to delve into this a bit deeper, but in the meantime y ou might<br>
consider using this as an option?<br>
<br>
var ht1:HydroTween &nbsp;= new HydroTween(target, {x:300}, 1, 0,<br>
Quadratic.easeOut, null, null, null, null, null, null, false);<br>
var ht2:HydroTween &nbsp;= new HydroTween(target, {x:100}, 1, 0,<br>
Quadratic.easeOut, null, null, null, null, null, null, false);<br>
<br>
var seq:Sequence = new Sequence(ht1, ht2);<br>
seq.repeater.cycles = Repeater.INFINITE;<br>
seq.start();<br>
<div><div></div><div class="Wj3C7c"><br>
-------- Original Message --------<br>
&gt; From: &quot;Bernardo Kuri&quot; &lt;<a href="mailto:support@bernardokuri.com">support@bernardokuri.com</a>&gt;<br>
&gt; Sent: Thursday, February 12, 2009 6:58 AM<br>
&gt; To: <a href="mailto:golist@goasap.org">golist@goasap.org</a><br>
&gt; Subject: [Golist] HydroSequence Looping Issue<br>
&gt;<br>
&gt; Hello fellow GoList members,<br>
&gt; I would really appreciate it if someone can help me out with this issue.<br>
My<br>
&gt; project will be ready to launch as soon as this is fixed.<br>
&gt;<br>
&gt; I am having an issue with a HydroSequence instance that I need to loop<br>
&gt; indefinitely. As far as I understand it, a HydroSequence class instance<br>
&gt; has a public property called &quot;repeater&quot; that needs to be set to<br>
&gt; Repeater.INFINITE in order to accomplish infinite looping. The problem<br>
is<br>
&gt; that it&#39;s<br>
&gt; not actually doing that at all. I tried adding a listener for the<br>
&quot;CYCLE&quot;<br>
&gt; event, but that doesn&#39;t get triggered either.<br>
&gt;<br>
&gt; Here&#39;s the relevant portion of the code:<br>
&gt;<br>
&gt; --------------------------------------<br>
&gt;<br>
&gt; import com.hydrotik.go.HydroSequence;<br>
&gt; import org.goasap.managers.Repeater;<br>
&gt;<br>
&gt; __sequence = new HydroSequence();<br>
&gt; __sequence.repeater.cycles = Repeater.INFINITE;<br>
&gt;<br>
&gt; __sequence.addItem( { func:firstFunction, args:[whatever] } );<br>
&gt; __sequence.addItem( { func:secondFunction } );<br>
&gt; __sequence.addItem( { target:__fader, start_alpha:1, alpha:0,<br>
&gt; duration:__duration_fade } );<br>
&gt; __sequence.addItem( { delay:Number(properties.@timeout) ||<br>
&gt; __duration_timeout, func:trace, args:[&#39;timeout triggered&#39;]} );<br>
&gt;<br>
&gt; __sequence.start();<br>
&gt;<br>
&gt; --------------------------------------<br>
&gt;<br>
&gt; If I execute the above and look at the output, &quot;timeout triggered&quot; will<br>
show<br>
&gt; only once, which is obviously not what I need.<br>
&gt;<br>
&gt; I have even tried adding another step to the sequence that basically<br>
calls<br>
&gt; __sequence.start(), like so:<br>
&gt;<br>
&gt; __sequence.addItem( { taget:__sequence func:start } );<br>
&gt;<br>
&gt; ... but that did absolutely nothing.<br>
&gt;<br>
&gt; Am I missing something here? I really can&#39;t seem to get it to work<br>
&gt; correctly.<br>
&gt; Thanks for your time guys!<br>
&gt;<br>
&gt; Bernardo Kuri<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></div>