Link Search Menu Expand Document

DisplayObject Class

Standard-Display

This is the base class for the screen display class. It has the basic functions of screen display, and all screen display classes are derived from the DisplayObject class.

The DisplayObject-derived class should place the object as part of an object tree that starts with “//” (Root object).

You cannot create an instance without being connected to the object tree with the new operator, or place it in the global namespace with import.

Also, only objects derived from the ContainerObject class are allowed as parent objects in the object tree. Objects that are not derived from the ContainerObject class, such as String and Date, cannot be created as parents.

The DisplayObject class is a virtual class and cannot instantiate itself.

In the Mobile version, the DisplayObject class does not exist because there is no concept of class, but in the explanation of common properties and methods, it is explained as DisplayObject class for convenience.


Table of contents