Oh yeah, of course. The queue is external to the function that creates them,
so you don't need the set timeout.
I dont think it would be very hard to patch in, but I think you'll find the
queue destroys itself as it executes anyway.
I haven't checked this tho
On 5/3/07, bovineaux <[EMAIL PROTECTED]> wrote:
>
>
> This is essentially what I'm doing at the moment. I have a function
> called createQueue that does all the Effect.Appear / Effect.Fade calls
> in sequence with the right queue options to set up the custom queue/
> scope. On the final Fade I add a reference to that same createQueue
> function as the afterFinish option. A setTimeout seemed unnecessary as
> the createQueue only creates the effects and returns without blocking.
>
> Just a shame I can't simply say Effect.Queues.get("queueName").looping
> = true, or something to that effect.
>
> On May 3, 4:10 pm, "Gareth Evans" <[EMAIL PROTECTED]> wrote:
> > from the after finish you could use a window.settimeout to call the
> initial
> > function that started the queue again?
> > you'd have to use the window settimeout or you would potentially get
> into a
> > very deep recursion if it was left running for a long time.
> >
> > On 5/3/07, bovineaux <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Given a queue of effects, is it possible to set that queue to loop
> > > indefinitely? If so, how?
> >
> > > I have an effect queue of:
> >
> > > - Appear element A
> > > - Fade element A
> > > - Appear element B
> > > - Fade element B
> > > - Appear element C
> > > - Fade element C
> > > - (etc.)
> >
> > > All effects are assigned to a custom queue. The effect runs fine and
> > > the results as intended for one complete sequence, but I need to
> > > somehow restart the sequence.
> >
> > > It would be great if I could set a flag or call a method on the queue
> > > somehow that instructs it to loop after the last effect has finished.
> > > But if I need to re-create the queue at the end each time, then so be
> > > it - I'll look into that.
> >
> > > TIA,
> > > bovineaux
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---