Class Shape
Extends
DisplayObject.
The Shape class includes a graphics property, which lets you create shapes and graphics. Known issue: the width and height are 0, need to be specified manually.
Constructor Attributes | Constructor Name and Description |
---|---|
Shape()
Constructor.
|
Field Attributes | Field Name and Description |
---|---|
Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur.
|
- Fields borrowed from class DisplayObject:
- alpha, height, id, mouseEnabled, name, parent, regX, regY, rotation, scaleX, scaleY, stage, useHandCursor, visible, width, x, y
- Methods borrowed from class DisplayObject:
- getCurrentHeight, getCurrentWidth, getRect, getStage, globalToLocal, hitTestObject, hitTestPoint, localToGlobal, localToTarget, onMouseEvent, render, toString
- Methods borrowed from class EventDispatcher:
- addEventListener, dispatchEvent, hasEventListener, removeAllEventListeners, removeEventListener, removeEventListenerByType
Field Detail
graphics
Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur.