How do I get the user's screen resolution in ActionScript 3?

前端 未结 4 1009
难免孤独
难免孤独 2021-02-09 04:12

Is there a way ActionScript 3 can detect the user\'s screen resolution?

4条回答
  •  生来不讨喜
    2021-02-09 05:01

    If you are on AIR, you could use the flash.display.Screen class, which contains this info, plus a lot more, such as color-depth, and multi-screen support.

提交回复
热议问题