I would just like to add that __sequence.steps.length does indeed return the correct number of steps, so I am really at a loss as to why __sequence.start() doesn&#39;t do anything at all.<div>Any extra help would be truly appreciated!<br clear="all">
Bernardo Kuri<br>
<br><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 5:11 PM, Bernardo Kuri <span dir="ltr">&lt;<a href="mailto:support@bernardokuri.com">support@bernardokuri.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Here&#39;s the thing: I&#39;m creating a banner rotator, which basically does the following:<div><ol><li>reads an XML file</li><li>creates banner(s) on the fly based on the XML parameters</li><li>adds the banner(s) to a queue</li>

<li>the sequence rotates the item(s) on the queue indefinitely<br></li></ol><div>So I&#39;m not really reusing a sequence; rather I initialize the sequence object on my init() function, and then call my addBanner() function, which adds the addStep() parameters to said sequencer object. I then call __sequence.start() once all the banners have been parsed/added to the queue.</div>

</div><div><br></div><div>Does this clear it up a bit?</div><div><br clear="all"><font color="#888888">Bernardo Kuri</font><div><div></div><div class="Wj3C7c"><br>
<br><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 4:55 PM, Donovan Adams <span dir="ltr">&lt;<a href="mailto:donovan@hydrotik.com" target="_blank">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">

Can you create a new instance of the HydroSequence?<br>
<br>
Is their a reason you are reusing the same one?<br>
<br>
Might be better at this point to create a new instance of the sequence as<br>
well as populate the props and values and functions?<br>
<div><br>
-------- Original Message --------<br>
&gt; From: &quot;Bernardo Kuri&quot; &lt;<a href="mailto:support@bernardokuri.com" target="_blank">support@bernardokuri.com</a>&gt;<br>
</div><div><div></div><div>&gt; Sent: Thursday, February 12, 2009 10:49 AM<br>
&gt; To: &quot;Mailing list for the Go ActionScript Animation Platform&quot;<br>
&lt;<a href="mailto:golist@goasap.org" target="_blank">golist@goasap.org</a>&gt;<br>
&gt; Subject: Re: [Golist] HydroSequence Looping Issue<br>
&gt;<br>
&gt; Here&#39;s my new code:<br>
&gt; __sequence.addStep(new HydroTween(this, { func:functionOne,<br>
args:[whatever]<br>
&gt; }, 0, 0, null, null, null, null, null, null, null, false ));<br>
&gt; __sequence.addStep(new HydroTween(this, { func:functionTwo }, 0, 0,<br>
null,<br>
&gt; null, null, null, null, null, null, false ));<br>
&gt; __sequence.addStep(new HydroTween(__fader, { start_alpha:1, alpha:0,<br>
&gt; duration:__duration_fade }, 0, 0, null, null, null, null, null, null,<br>
null,<br>
&gt; false ));<br>
&gt; __sequence.addStep(new HydroTween(this, {<br>
delay:Number(properties.@timeout)<br>
&gt; || __duration_timeout, func:trace, args:[&#39;timeout triggered&#39;] }, 0, 0,<br>
null,<br>
&gt; null, null, null, null, null, null, false ));<br>
&gt;<br>
&gt; I changed the nulls to point to &quot;this&quot;, as well as the &quot;false&quot; in the end<br>
of<br>
&gt; each addStep() call, but I got the same results as before. The __fader<br>
&gt; Sprite did not work before or after the change, BTW.<br>
&gt; Hope that helps,<br>
&gt;<br>
&gt; Bernardo Kuri<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Feb 12, 2009 at 4:36 PM, Donovan Adams &lt;<a href="mailto:donovan@hydrotik.com" target="_blank">donovan@hydrotik.com</a>&gt;<br>
wrote:<br>
&gt;<br>
&gt; &gt; Possible that since you are adding HydroTween instances with a null<br>
target<br>
&gt; &gt; the tweens aren&#39;t working properly.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m assuming the __fader is tweening fine though? Make sure you are<br>
adding<br>
&gt; &gt; the argument to disable the GC. was in the last snippet I sent. Looks<br>
like<br>
&gt; &gt; it got omitted in the code you sent.<br>
&gt; &gt;<br>
&gt; &gt; Still trying to figure out what&#39;s going on and it looks like a couple<br>
of<br>
&gt; &gt; things.<br>
&gt; &gt;<br>
&gt; &gt; The optimization of HydroTween for Garbage Collection is creating the<br>
issue<br>
&gt; &gt; with HydroSequence when sequences need to be reused. Just needs a<br>
little<br>
&gt; &gt; hashing out.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; -------- Original Message --------<br>
&gt; &gt; &gt; From: &quot;Bernardo Kuri&quot; &lt;<a href="mailto:support@bernardokuri.com" target="_blank">support@bernardokuri.com</a>&gt;<br>
&gt; &gt; &gt; Sent: Thursday, February 12, 2009 10:24 AM<br>
&gt; &gt; &gt; To: &quot;Mailing list for the Go ActionScript Animation Platform&quot;<br>
&gt; &gt; &lt;<a href="mailto:golist@goasap.org" target="_blank">golist@goasap.org</a>&gt;<br>
&gt; &gt; &gt; Subject: Re: [Golist] HydroSequence Looping Issue<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks for the suggestion, Donovan.I had to modify your example to<br>
fit<br>
&gt; &gt; my<br>
&gt; &gt; &gt; code, and this is what i came up with:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; // start code<br>
&gt; &gt; &gt; __sequence = new Sequence();<br>
&gt; &gt; &gt; __sequence.addEventListener(&quot;START&quot;, onSeqEvent, false, 0, true);<br>
&gt; &gt; &gt; __sequence.addEventListener(&quot;CYCLE&quot;, onSeqEvent, false, 0, true);<br>
&gt; &gt; &gt; __sequence.repeater.cycles = Repeater.INFINITE;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; // The following code resides in another function. As you can see,<br>
the<br>
&gt; &gt; &gt; sequence needs to be dynamically created:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; __sequence.addStep(new HydroTween(null, { func:functionOne,<br>
&gt; &gt; args:[whatever]<br>
&gt; &gt; &gt; } ));<br>
&gt; &gt; &gt; __sequence.addStep(new HydroTween(null, { func:functionTwo } ));<br>
&gt; &gt; &gt; __sequence.addStep(new HydroTween(__fader, { start_alpha:1, alpha:0,<br>
&gt; &gt; &gt; duration:__duration_fade } ));<br>
&gt; &gt; &gt; __sequence.addStep(new HydroTween(null, {<br>
&gt; &gt; delay:Number(properties.@timeout)<br>
&gt; &gt; &gt; || __duration_timeout, func:trace, args:[&#39;timeout triggered&#39;] } ));<br>
&gt; &gt; &gt; __sequence.start();<br>
&gt; &gt; &gt; // end code<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The weird thing is that none of the events are being dispatched at<br>
all.<br>
&gt; &gt; On<br>
&gt; &gt; &gt; top of that, my &quot;timeout triggered&quot; trace is not showing on my<br>
output<br>
&gt; &gt; &gt; anymore.<br>
&gt; &gt; &gt; Is there anything else I can try?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks a bunch,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Bernardo Kuri<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Thu, Feb 12, 2009 at 1:45 PM, Donovan Adams<br>
&lt;<a href="mailto:donovan@hydrotik.com" target="_blank">donovan@hydrotik.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; It seems there is an issue with the autoGC feature and passing a<br>
param<br>
&gt; &gt; into<br>
&gt; &gt; &gt; &gt; HydroSequence.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; The reason it&#39;s not repeating is that HydroTween is clearing out<br>
the<br>
&gt; &gt; memory<br>
&gt; &gt; &gt; &gt; of the tweens in a sequence.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I will have to delve into this a bit deeper, but in the meantime y<br>
ou<br>
&gt; &gt; might<br>
&gt; &gt; &gt; &gt; consider using this as an option?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; var ht1:HydroTween &nbsp;= new HydroTween(target, {x:300}, 1, 0,<br>
&gt; &gt; &gt; &gt; Quadratic.easeOut, null, null, null, null, null, null, false);<br>
&gt; &gt; &gt; &gt; var ht2:HydroTween &nbsp;= new HydroTween(target, {x:100}, 1, 0,<br>
&gt; &gt; &gt; &gt; Quadratic.easeOut, null, null, null, null, null, null, false);<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; var seq:Sequence = new Sequence(ht1, ht2);<br>
&gt; &gt; &gt; &gt; seq.repeater.cycles = Repeater.INFINITE;<br>
&gt; &gt; &gt; &gt; seq.start();<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; -------- Original Message --------<br>
&gt; &gt; &gt; &gt; &gt; From: &quot;Bernardo Kuri&quot; &lt;<a href="mailto:support@bernardokuri.com" target="_blank">support@bernardokuri.com</a>&gt;<br>
&gt; &gt; &gt; &gt; &gt; Sent: Thursday, February 12, 2009 6:58 AM<br>
&gt; &gt; &gt; &gt; &gt; To: <a href="mailto:golist@goasap.org" target="_blank">golist@goasap.org</a><br>
&gt; &gt; &gt; &gt; &gt; Subject: [Golist] HydroSequence Looping Issue<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Hello fellow GoList members,<br>
&gt; &gt; &gt; &gt; &gt; I would really appreciate it if someone can help me out with<br>
this<br>
&gt; &gt; issue.<br>
&gt; &gt; &gt; &gt; My<br>
&gt; &gt; &gt; &gt; &gt; project will be ready to launch as soon as this is fixed.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I am having an issue with a HydroSequence instance that I need<br>
to<br>
&gt; &gt; loop<br>
&gt; &gt; &gt; &gt; &gt; indefinitely. As far as I understand it, a HydroSequence class<br>
&gt; &gt; instance<br>
&gt; &gt; &gt; &gt; &gt; has a public property called &quot;repeater&quot; that needs to be set to<br>
&gt; &gt; &gt; &gt; &gt; Repeater.INFINITE in order to accomplish infinite looping. The<br>
&gt; &gt; problem<br>
&gt; &gt; &gt; &gt; is<br>
&gt; &gt; &gt; &gt; &gt; that it&#39;s<br>
&gt; &gt; &gt; &gt; &gt; not actually doing that at all. I tried adding a listener for<br>
the<br>
&gt; &gt; &gt; &gt; &quot;CYCLE&quot;<br>
&gt; &gt; &gt; &gt; &gt; event, but that doesn&#39;t get triggered either.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Here&#39;s the relevant portion of the code:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; --------------------------------------<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; import com.hydrotik.go.HydroSequence;<br>
&gt; &gt; &gt; &gt; &gt; import org.goasap.managers.Repeater;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; __sequence = new HydroSequence();<br>
&gt; &gt; &gt; &gt; &gt; __sequence.repeater.cycles = Repeater.INFINITE;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; __sequence.addItem( { func:firstFunction, args:[whatever] } );<br>
&gt; &gt; &gt; &gt; &gt; __sequence.addItem( { func:secondFunction } );<br>
&gt; &gt; &gt; &gt; &gt; __sequence.addItem( { target:__fader, start_alpha:1, alpha:0,<br>
&gt; &gt; &gt; &gt; &gt; duration:__duration_fade } );<br>
&gt; &gt; &gt; &gt; &gt; __sequence.addItem( { delay:Number(properties.@timeout) ||<br>
&gt; &gt; &gt; &gt; &gt; __duration_timeout, func:trace, args:[&#39;timeout triggered&#39;]} );<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; __sequence.start();<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; --------------------------------------<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; If I execute the above and look at the output, &quot;timeout<br>
triggered&quot;<br>
&gt; &gt; will<br>
&gt; &gt; &gt; &gt; show<br>
&gt; &gt; &gt; &gt; &gt; only once, which is obviously not what I need.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I have even tried adding another step to the sequence that<br>
basically<br>
&gt; &gt; &gt; &gt; calls<br>
&gt; &gt; &gt; &gt; &gt; __sequence.start(), like so:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; __sequence.addItem( { taget:__sequence func:start } );<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; ... but that did absolutely nothing.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Am I missing something here? I really can&#39;t seem to get it to<br>
work<br>
&gt; &gt; &gt; &gt; &gt; correctly.<br>
&gt; &gt; &gt; &gt; &gt; Thanks for your time guys!<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Bernardo Kuri<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; GoList mailing list<br>
&gt; &gt; &gt; &gt; &gt; <a href="mailto:GoList@goasap.org" target="_blank">GoList@goasap.org</a><br>
&gt; &gt; &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; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; GoList mailing list<br>
&gt; &gt; &gt; &gt; <a href="mailto:GoList@goasap.org" target="_blank">GoList@goasap.org</a><br>
&gt; &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; &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" target="_blank">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;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; GoList mailing list<br>
&gt; &gt; <a href="mailto:GoList@goasap.org" target="_blank">GoList@goasap.org</a><br>
&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;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; GoList mailing list<br>
&gt; <a href="mailto:GoList@goasap.org" target="_blank">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" target="_blank">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></div></div>
</blockquote></div><br></div>