Understanding The Display Architecture - Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual

Programming actionscript 3.0
Table of Contents

Advertisement

You can access the Stage through the
more information, see
Display objects
In ActionScript 3.0, all elements that appear on screen in an application are types of
display objects. The flash.display package includes a DisplayObject class, which is a base
class extended by a number of other classes. These different classes represent different
types of display objects, such as vector shapes, movie clips, and text fields, to name a few.
For an overview of these classes, see
Display object containers
Display object containers are special types of display objects that can contain child objects
that are also display objects.
The DisplayObjectContainer class is a subclass of the DisplayObject class. A
DisplayObjectContainer object can contain multiple display objects in its child list. For
example, the following illustration shows a type of DisplayObjectContainer object known
as a Sprite that contains various display objects:
In the context of discussing display objects, DisplayObjectContainer objects are also
known as display object containers or simply containers.
Although all visible display objects inherit from the DisplayObject class, the type of each
is of a specific subclass of DisplayObject class. For example, there is a constructor function
for the Shape class or the Video class, but there is no constructor function for the
DisplayObject class.
As noted earlier, the Stage is a display object container.
stage
"Setting Stage properties" on page
"Core display classes" on page
property of any DisplayObject instance. For
173.
A SimpleButton object. This
type of display object has
different "up," "down," and
"over" states.
A Bitmap object. In this case, the
Bitmap object was loaded from
an external JPEG through a
Loader object.
A Shape object. The "picture
frame" contains a rounded
rectangle that is drawn in
ActionScript. This Shape object
has a Drop Shadow filter applied
to it.
A TextField object.

Understanding the display architecture

162.
161

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents