andymadonna a écrit :
> I'm wondering if you can have more than one PeriodicalExecuter?

Actually you do.  Looking at your code, you create one PE per loop
cycle, and they all start by immediately stopping themselves, so they
only run once.

In short, you don't use the Periodical part at all.  You just use
timeouts.  You'd probably be better off reverting to native setTimeout
calls, then.

Oh, and one more thing: instead of setting all the timeouts at once, you
may want to only set the next one, which will do its task, then prep the
one after it.  This lets you use afterFinish callbacks on your effects,
for instance, to provide constant intervals between pictures being
actually seen.  If you prep the timeouts all at once when starting, and
a few pictures take a long time to load, you may end up seeing those too
a short time.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to