I have a custom effect that I'm writing (using Effect.Base) and so far it's
great. I want to be able to queue up the effects to run one after the other so
I'm using effect queues. The problem is that my my afterFinish callback updates
some things that the next effect needs to know before starting, but the next
effect's initialize() routine has already been called before the first effect is
finished. The 2nd effect does wait to do it's loop cycle until the first one
finishes, but it's working with stale information.

The beforeStart hook won't work either because it's still called well before the
2nd queued effect actually starts it's loop.

Besides creating a block at the start of my update() routine that checks to make
sure everything is fresh I'm not sure what to do. And I'd rather not add
anything to the update() routine since it get's called fairly often.

Thoughts?

-- 
Michael Peters
Developer
Plus Three, LP


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