How to Retrieve Screen Bounds in ActionScript 3 in Flash
Crisp, clear Adobe Flash animations depend on the resolution of the screen. You customize your Flash apps to fit the screen resolution of the user's computer, so the animation displays with the highest quality. You use the "System.capabilities.screenResolutionX" and "System.capabilities.screenResolutionY" functions to determine the screen bounds in an ActionScript 3 script.
Instructions
-
-
1
Open the ActionScript 3 editor and open your Flash Web project. Double-click the file you want to use to determine the screen bounds.
-
2
Get the size of the "X" pixels. The X line is the horizontal pixels. The following code determines the X pixel:
x = System.capabilities.screenResolutionX;
-
-
3
Retrieve the "Y" pixels. The Y pixels stack vertically along the screen. The following code determines the Y pixels:
y = System.capabilities.screenResolutionY;
-
1