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

4

7

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

Diarist answered 26/6, 2009 at 11:16 Comment(0)
I
9

have a look at stage.fullScreenHeight and stage.fullScreenWidth

Incongruity answered 26/6, 2009 at 11:30 Comment(0)
M
14

These will return the numbers to your output window:

trace(Capabilities.screenResolutionX);
trace(Capabilities.screenResolutionY);
Maisiemaison answered 27/12, 2010 at 10:55 Comment(0)
I
9

have a look at stage.fullScreenHeight and stage.fullScreenWidth

Incongruity answered 26/6, 2009 at 11:30 Comment(0)
M
2

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.

Maxima answered 3/7, 2009 at 0:2 Comment(0)
S
1

flash.system.Capabilities.screenResolutionY and flash.system.Capabilities.screenResolutionX

Shortcake answered 2/1, 2010 at 0:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.