Actually that's exactly what I tried, but the event doesn't seem to be triggered...<div>Your Timer idea will not work for me in this case because of the way the code is laid out.</div><div>Thanks very much for your quick response regardless.<br clear="all">
Bernardo Kuri<br>
<br><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 1:04 PM, Christopher Wilson <span dir="ltr"><<a href="mailto:chris@gomedia.us">chris@gomedia.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p><span style="font-size:11.0pt;color:#1F497D">Or you may be able to just wrap this thing in a function and
then call it from itself with one of those onComplete methods.</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:golist-bounces@goasap.org" target="_blank">golist-bounces@goasap.org</a> [mailto:<a href="mailto:golist-bounces@goasap.org" target="_blank">golist-bounces@goasap.org</a>] <b>On Behalf Of </b>Christopher
Wilson<br>
<b>Sent:</b> Thursday, February 12, 2009 2:02 PM<br>
<b>To:</b> Mailing list for the Go ActionScript Animation Platform<br>
<b>Subject:</b> Re: [Golist] HydroSequence Looping Issue</span></p>
</div>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p><span style="font-size:11.0pt;color:#1F497D">I haven't used HydroTween yet, but you could instead accomplish
this with a Timer.</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;color:#1F497D">Something like</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;color:#1F497D">var loopTimer:Timer = new Timer(1000, 0); </span></p>
<p><span style="font-size:11.0pt;color:#1F497D">loopTimer.addEventListener(TimerEvent.TIMER, loopHandler);</span></p>
<p><span style="font-size:11.0pt;color:#1F497D">loopTimer.start();</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;color:#1F497D">function loopHandler(t:TimerEvent):void{</span></p>
<p><span style="font-size:11.0pt;color:#1F497D">hydro sequence…</span></p>
<p><span style="font-size:11.0pt;color:#1F497D">}</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:golist-bounces@goasap.org" target="_blank">golist-bounces@goasap.org</a> [mailto:<a href="mailto:golist-bounces@goasap.org" target="_blank">golist-bounces@goasap.org</a>] <b>On Behalf Of </b>Bernardo
Kuri<br>
<b>Sent:</b> Thursday, February 12, 2009 1:57 PM<br>
<b>To:</b> <a href="mailto:golist@goasap.org" target="_blank">golist@goasap.org</a><br>
<b>Subject:</b> [Golist] HydroSequence Looping Issue</span></p>
</div>
<p> </p>
<p>Hello fellow GoList members,</p>
<div>
<p> </p>
</div>
<div>
<p>I would really appreciate it if someone can help me out with
this issue. My project will be ready to launch as soon as this is fixed.</p>
</div>
<div>
<p> </p>
</div>
<div>
<div>
<p>I am having an issue with a HydroSequence instance that I
need to loop indefinitely. As far as I understand it, a HydroSequence class
instance</p>
</div>
<div>
<p>has a public property called "repeater" that
needs to be set to Repeater.INFINITE in order to accomplish infinite looping.
The problem is that it's</p>
</div>
<div>
<p>not actually doing that at all. I tried adding a listener
for the "CYCLE" event, but that doesn't get triggered either.</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>Here's the relevant portion of the code:</p>
</div>
<div>
<p> </p>
</div>
<div>
<div>
<p>--------------------------------------</p>
</div>
<div>
<p> </p>
</div>
<div>
<div>
<p>import com.hydrotik.go.HydroSequence;</p>
</div>
<div>
<div>
<p>import org.goasap.managers.Repeater;</p>
</div>
<div>
<p> </p>
</div>
</div>
</div>
<div>
<p>__sequence = new HydroSequence();</p>
</div>
<div>
<p>__sequence.repeater.cycles = Repeater.INFINITE;</p>
</div>
<div>
<p> </p>
</div>
</div>
<div>
<div>
<p>__sequence.addItem( { func:firstFunction, args:[whatever] }
);</p>
</div>
<div>
<p>__sequence.addItem( { func:secondFunction } );</p>
</div>
<div>
<p>__sequence.addItem( { target:__fader, start_alpha:1,
alpha:0, duration:__duration_fade } );</p>
</div>
<div>
<p>__sequence.addItem( { delay:Number(properties.@timeout) ||
__duration_timeout, func:trace, args:['timeout triggered']} );</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>__sequence.start();</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>--------------------------------------</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>If I execute the above and look at the output, "timeout
triggered" will show only once, which is obviously not what I need.</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>I have even tried adding another step to the sequence that
basically calls __sequence.start(), like so:</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>__sequence.addItem( { taget:__sequence func:start } );</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>... but that did absolutely nothing.</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>Am I missing something here? I really can't seem to get it
to work correctly.</p>
</div>
<div>
<p>Thanks for your time guys!</p>
</div>
</div>
<div>
<p><br clear="all">
Bernardo Kuri</p>
</div>
</div>
</div></div></div>
</div>
<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>
<br></blockquote></div><br></div>