Flash code 'pauses' when in inactive tab?
Does flash pause its execution somehow if the browser tab in which its residing is inactive?
I developed a multiplayer game开发者_StackOverflow社区 using cirrus and when I tried to play it by switching tabs, making a move in each tab, there were some inconsistencies regarding the way the game executed as if the inactive tab pauses the flash execution and then resume once it was active.
The game works perfectly in standalone flash player/debugger.
Yes, in 10.1 they introduced throttle:
http://saumyaray.wordpress.com/2011/07/14/flashplayer-throttle-solving-a-problem-or-creating-one/
Search your (lib) code for listeners to Event.ACTIVATE and Event.DEACTIVATE.
Those are commonly used to pause a game when it doesn't have focus.
精彩评论