flash slow in browser
- Started
- Last post
- 6 Responses
- qruise
i have a bunch of mathy animations going on.
when i preview my movie in flash, it runs smooth as silk.
when i publish the SWF and view it in firefox, it runs noticeably slower and more laggy.
any ideas on why.
- ********0
because it always plays slower in a browser no matter what you are doing with it.
worse still if its on a mac.
- version30
avoid frame based animations
- lvl_130
avoid onEnterFrame if at all possible.
make sure you delete it right when it doesn't need to be used anymore. also try and avoid multiple alpha tweens (animated or scripted) that will kill all! especially most mac browsers
- qruise0
"avoid onEnterFrame if at all possible."
tis probably whats doing it. still, there is no way to avoid it with some of the shit im doing. hrm.
- qruise0
still, i wonder WHY it runs so much nicer in flash's silly Test Movie mode, rather than when its a fully published SWF in a browser.
- st33d0
look up setInterval() or just run everything from one onEnterFrame(), it's impossible to make games work on Flash if you do otherwise. MovieClips are miscreants.