These docs are *very* out of date.
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
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