Type Number Library display.* Revision 2018.3274 Keywords pixelWidth See also [api.library.display.pixelHeight]
The width of the screen for mobile device apps, or the width of the window for desktop apps. This value is in pixels and is always relative to portrait orientation.
For historical reasons with context to mobile devices, this value is always reported from the perspective of a portait app and therefore may actually be the height of the physical screen.
print( display.pixelWidth )