How to prevent Event.Resize to trigger twice on displayState change to FULL_SCREEN?

前端 未结 2 495
-上瘾入骨i
-上瘾入骨i 2021-01-26 10:19

I have an application with an fullscreen button, when that button is clicked I change the displayState of stage to StageDisplayState.FULL_SCREEN_INTERACTIVE.

相关标签:
2条回答
  • 2021-01-26 10:29

    It seems like this is a bug limited to the debug player.

    Debug version of Flash Player 11.1 reproduces this bug, while the Chrome version 11.2 and browser plugin 11.1 does not.

    0 讨论(0)
  • 2021-01-26 10:38

    Use a boolean. For example, make it true in the resize function and check if it's not true to execute it.

    0 讨论(0)
提交回复
热议问题