onEnterFrame / while loop

Out of context: Reply #12

  • Started
  • Last post
  • 18 Responses
  • nic0

    What, it's 1:26 in the morning, and i'm talking actionscript, after booze!

    *geekchat*

    onEnterFrame, in practice is much more solid. There is a problem with setInterval ... when running setIntervals on different levels, remember that the setIntervals do not clear when you unload a level, and can continue running in another movie that you load in the same level. strange, but it can be a nightmare. You also have to deal with updateAfterEvent(), and if i can remember, setIntevals can only run as fast as the frame rate. (correct me if i'm wrong).

    It's all a mess, but so many times, i've had to backtrack and make my intervals into onEnterFrames.

    boom

View thread