13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Display programming<br />

Although all visible display objects inherit from the DisplayObject class, the type of each is of a specific subclass of<br />

DisplayObject class. For example, there is a constructor function for the Shape class or the Video class, but there is<br />

no constructor function for the DisplayObject class.<br />

Important concepts and terms<br />

The following refer<strong>en</strong>ce list contains important terms that you will <strong>en</strong>counter wh<strong>en</strong> programming ActionScript<br />

graphics:<br />

Alpha The color value repres<strong>en</strong>ting the amount of transpar<strong>en</strong>cy (or more correctly, the amount of opacity) in a color.<br />

For example, a color with an alpha channel value of 60% only shows 60% of its full str<strong>en</strong>gth, and is 40% transpar<strong>en</strong>t.<br />

Bitmap graphic A graphic that is defined in the computer as a grid (rows and columns) of colored pixels. Commonly<br />

bitmap graphics include digital photos and similar images.<br />

Bl<strong>en</strong>ding mode A specification of how the cont<strong>en</strong>ts of two overlapping images should interact. Commonly an opaque<br />

image on top of another image simply blocks the image underneath so that it isn’t visible at all; however, differ<strong>en</strong>t<br />

bl<strong>en</strong>ding modes cause the colors of the images to bl<strong>en</strong>d together in differ<strong>en</strong>t ways so the resulting cont<strong>en</strong>t is some<br />

combination of the two images.<br />

Display list The hierarchy of display objects that will be r<strong>en</strong>dered as visible scre<strong>en</strong> cont<strong>en</strong>t by Flash Player and AIR.<br />

The Stage is the root of the display list, and all the display objects that are attached to the Stage or one of its childr<strong>en</strong><br />

form the display list (ev<strong>en</strong> if the object isn’t actually r<strong>en</strong>dered, for example if it’s outside the boundaries of the Stage).<br />

Display object An object which repres<strong>en</strong>ts some type of visual cont<strong>en</strong>t in Flash Player or AIR. Only display objects can<br />

be included in the display list, and all display object classes are subclasses of the DisplayObject class.<br />

Display object container A special type of display object which can contain child display objects in addition to<br />

(g<strong>en</strong>erally) having its own visual repres<strong>en</strong>tation.<br />

Main class of the SWF file The class that defines the behavior for the outermost display object in a SWF file, which<br />

conceptually is the class for the SWF file itself. For instance, in a SWF created in Flash authoring, the main class is the<br />

docum<strong>en</strong>t class. It has a “main timeline” which contains all other timelines; the main class of the SWF file is the class<br />

of which the main timeline is an instance.<br />

Masking A technique of hiding from view certain parts of an image (or conversely, only allowing certain parts of an<br />

image to display). The portions of the mask image become transpar<strong>en</strong>t, so cont<strong>en</strong>t underneath shows through. The<br />

term is related to painter’s masking tape that is used to prev<strong>en</strong>t paint from being applied to certain areas.<br />

Stage The visual container that is the base or background of all visual cont<strong>en</strong>t in a SWF.<br />

Transformation An adjustm<strong>en</strong>t to a visual characteristic of a graphic, such as rotating the object, altering its scale,<br />

skewing or distorting its shape, or altering its color.<br />

Vector graphic A graphic that is defined in the computer as lines and shapes drawn with particular characteristics<br />

(such as thickness, l<strong>en</strong>gth, size, angle, and position).<br />

Last updated 6/6/2012<br />

153

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!