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

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

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

4条回答
  •  遥遥无期
    2021-02-09 04:48

    These will return the numbers to your output window:

    trace(Capabilities.screenResolutionX);
    trace(Capabilities.screenResolutionY);
    

提交回复
热议问题