DisplayObject Class
this is the base class for all objects that are rendered on the screen.
Constructor
DisplayObject
()
Item Index
Methods
- autoDetectRenderer static
Methods
autoDetectRenderer
(
static
-
width
-
height
This helper function will automatically detect which renderer you should be using. WebGL is the preferred renderer as it is a lot fastest. If webGL is not supported by the browser then this function will return a canvas renderer
Parameters:
-
width
Numberthe width of the renderers view
-
height
Numberthe height of the renderers view
Properties
alpha
Number
The opacity of the object.
parent
DisplayObjectContainer
[read-only] The display object container that contains this display object.
rotation
Number
The rotation of the object in radians.
stage
Stage
[read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.
visible
Boolean
The visibility of the object.