FusePowered

object.stageWidth **old**

Description:

Width of the object in screen coordinates.

This has been deprecated in favor of object.contentWidth

Syntax:
Example:

local rect = display.newRect(100, 100, 50, 50)
rect:setFillColor(170, 170, 170)
 
print("stageWidth: ".. rect.stageWidth) -- stageWidth: 50

Returns:
Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    Corona SDK 2.0