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

markblue777 picture markblue777 · Jun 26, 2009 · Viewed 20.4k times · Source

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

Answer

rejo picture rejo · Dec 27, 2010

These will return the numbers to your output window:

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