[Golist] HydroSequence Looping Issue
Bernardo Kuri
support at bernardokuri.com
Thu Feb 12 11:08:42 PST 2009
Actually that's exactly what I tried, but the event doesn't seem to be
triggered...Your Timer idea will not work for me in this case because of the
way the code is laid out.
Thanks very much for your quick response regardless.
Bernardo Kuri
On Thu, Feb 12, 2009 at 1:04 PM, Christopher Wilson <chris at gomedia.us>wrote:
> 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.
>
>
>
> *From:* golist-bounces at goasap.org [mailto:golist-bounces at goasap.org] *On
> Behalf Of *Christopher Wilson
> *Sent:* Thursday, February 12, 2009 2:02 PM
> *To:* Mailing list for the Go ActionScript Animation Platform
> *Subject:* Re: [Golist] HydroSequence Looping Issue
>
>
>
> I haven't used HydroTween yet, but you could instead accomplish this with a
> Timer.
>
>
>
> Something like
>
>
>
> var loopTimer:Timer = new Timer(1000, 0);
>
> loopTimer.addEventListener(TimerEvent.TIMER, loopHandler);
>
> loopTimer.start();
>
>
>
> function loopHandler(t:TimerEvent):void{
>
> hydro sequence…
>
> }
>
>
>
>
>
> *From:* golist-bounces at goasap.org [mailto:golist-bounces at goasap.org] *On
> Behalf Of *Bernardo Kuri
> *Sent:* Thursday, February 12, 2009 1:57 PM
> *To:* golist at goasap.org
> *Subject:* [Golist] HydroSequence Looping Issue
>
>
>
> Hello fellow GoList members,
>
>
>
> 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.
>
>
>
> 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
>
> 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
>
> not actually doing that at all. I tried adding a listener for the "CYCLE"
> event, but that doesn't get triggered either.
>
>
>
> Here's the relevant portion of the code:
>
>
>
> --------------------------------------
>
>
>
> import com.hydrotik.go.HydroSequence;
>
> import org.goasap.managers.Repeater;
>
>
>
> __sequence = new HydroSequence();
>
> __sequence.repeater.cycles = Repeater.INFINITE;
>
>
>
> __sequence.addItem( { func:firstFunction, args:[whatever] } );
>
> __sequence.addItem( { func:secondFunction } );
>
> __sequence.addItem( { target:__fader, start_alpha:1, alpha:0,
> duration:__duration_fade } );
>
> __sequence.addItem( { delay:Number(properties. at timeout) ||
> __duration_timeout, func:trace, args:['timeout triggered']} );
>
>
>
> __sequence.start();
>
>
>
> --------------------------------------
>
>
>
> If I execute the above and look at the output, "timeout triggered" will
> show only once, which is obviously not what I need.
>
>
>
> I have even tried adding another step to the sequence that basically calls
> __sequence.start(), like so:
>
>
>
> __sequence.addItem( { taget:__sequence func:start } );
>
>
>
> ... but that did absolutely nothing.
>
>
>
> Am I missing something here? I really can't seem to get it to work
> correctly.
>
> Thanks for your time guys!
>
>
> Bernardo Kuri
>
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://goasap.org/pipermail/golist_goasap.org/attachments/20090212/155256c5/attachment.html>
More information about the GoList
mailing list