Shape
This object is used to create lightweight shapes using the Lua script library drawing application program interface(API). The Shape object includes a graphics property, which lets you access methods from the Graphics object.
The Sprite object also includes a graphics property, and it includes other features not available to the Shape object. For example, a Sprite object is a display object container, whereas a Shape object is not (and cannot contain child display objects). For this reason, Shape objects consume less memory than Sprite objects that contain the same graphics. However, a Sprite object supports user input events, while a Shape object does not.
Inherited from DisplayObject -> EventDispatcher
Can be created using method new:
Lib.Media.Display.Shape.new() |
Creates a new Shape object. |
|
Created with the Personal Edition of HelpNDoc: Produce electronic books easily