Schedule based event handler

Looking for some advice:

  • I need to load in a schedule of events (xml).
  • These events are precisely timed (down to a tenth of a second).
  • The events (like, attach movie to main screen) need to last for a very precise amount of time (again, within a tenth of a second).

So, it would run like so:
Schedule gets loaded that says:

  • “show banana for 15.5 seconds @ 2 min and 32 seconds after the movie started, then remove the banana.”
  • “show apple for 12 seconds @ 4 min and 12 seconds after the movie started, then remove the apple.”

and so on… like 100 of them.

So, what’s the best way to handle this? It seems like I’ll certainly have to use “setInterval” in there somewhere - but I’m looking for the cleanest and most accurate way to do this.

To complicate things further - my scene is rather computationally intensive (even on the f8 player) and timing accuracy seems to be a weak spot for flash in this kind of situation.

Suggestions?