package flash.display

ActionScriptVersion

Bitmap

The Bitmap class represents display objects that represent bitmap images. * These can be images that you load with the flash.Assets or * flash.display.Loader classes, or they can be images that you * create with the Bitmap() constructor. *

The Bitmap() constructor allows you to create a Bitmap * object that contains a reference to a BitmapData object. After you create a * Bitmap object, use the addChild() or addChildAt() * method of the parent DisplayObjectContainer instance to place the bitmap on * the display list.

BitmapData

The BitmapData class lets you work with the data(pixels) of a Bitmap * object. You can use the methods of the BitmapData class to create * arbitrarily sized transparent or opaque bitmap images and manipulate them * in various ways at runtime. You can also access the BitmapData for a bitmap * image that you load with the flash.Assets or * flash.display.Loader classes. *

This class lets you separate bitmap rendering operations from the * internal display updating routines of flash. By manipulating a * BitmapData object directly, you can create complex images without incurring * the per-frame overhead of constantly redrawing the content from vector * data.

BitmapDataChannel

The BitmapDataChannel class is an enumeration of constant values that * indicate which channel to use: red, blue, green, or alpha transparency. *

When you call some methods, you can use the bitwise OR operator * (|) to combine BitmapDataChannel constants to indicate * multiple color channels.

BlendMode

A class that provides constant values for visual blend mode effects. These * constants are used in the following: *

    *
  • The blendMode property of the * flash.display.DisplayObject class.
  • *
  • The blendMode parameter of the draw() * method of the flash.display.BitmapData class
  • *

CapsStyle

The CapsStyle class is an enumeration of constant values that specify the * caps style to use in drawing lines. The constants are provided for use as * values in the caps parameter of the * flash.display.Graphics.lineStyle() method. You can specify the * following three types of caps:

ColorCorrection

ColorCorrectionSupport

DisplayObject

The DisplayObject class is the base class for all objects that can be * placed on the display list. The display list manages all objects displayed * in flash. Use the DisplayObjectContainer class to arrange the * display objects in the display list. DisplayObjectContainer objects can * have child display objects, while other display objects, such as Shape and * TextField objects, are "leaf" nodes that have only parents and siblings, no * children. *

The DisplayObject class supports basic functionality like the x * and y position of an object, as well as more advanced properties of * the object such as its transformation matrix.

DisplayObjectContainer

The DisplayObjectContainer class is the base class for all objects that can * serve as display object containers on the display list. The display list * manages all objects displayed in the Flash runtimes. Use the * DisplayObjectContainer class to arrange the display objects in the display * list. Each DisplayObjectContainer object has its own child list for * organizing the z-order of the objects. The z-order is the front-to-back * order that determines which object is drawn in front, which is behind, and * so on. *

DisplayObject is an abstract base class; therefore, you cannot call * DisplayObject directly. Invoking new DisplayObject() throws an * ArgumentError exception.

FrameLabel

GradientType

The GradientType class provides values for the type parameter * in the beginGradientFill() and * lineGradientStyle() methods of the flash.display.Graphics * class.

Graphics

The Graphics class contains a set of methods that you can use to create a * vector shape. Display objects that support drawing include Sprite and Shape * objects. Each of these classes includes a graphics property * that is a Graphics object. The following are among those helper functions * provided for ease of use: drawRect(), * drawRoundRect(), drawCircle(), and * drawEllipse(). *

You cannot create a Graphics object directly from ActionScript code. If * you call new Graphics(), an exception is thrown.

GraphicsPathWinding

The GraphicsPathWinding class provides values for the * flash.display.GraphicsPath.winding property and the * flash.display.Graphics.drawPath() method to determine the * direction to draw a path. A clockwise path is positively wound, and a * counter-clockwise path is negatively wound: * *

When paths intersect or overlap, the winding direction determines the * rules for filling the areas created by the intersection or overlap:

IBitmapDrawable

IGraphicsData

InteractiveObject

The InteractiveObject class is the abstract base class for all display * objects with which the user can interact, using the mouse, keyboard, or * other user input device. *

You cannot instantiate the InteractiveObject class directly. A call to * the new InteractiveObject() constructor throws an * ArgumentError exception.

InterpolationMethod

The InterpolationMethod class provides values for the * interpolationMethod parameter in the * Graphics.beginGradientFill() and * Graphics.lineGradientStyle() methods. This parameter * determines the RGB space to use when rendering the gradient.

JointStyle

The JointStyle class is an enumeration of constant values that specify the * joint style to use in drawing lines. These constants are provided for use * as values in the joints parameter of the * flash.display.Graphics.lineStyle() method. The method supports * three types of joints: miter, round, and bevel, as the following example * shows:

LineScaleMode

The LineScaleMode class provides values for the scaleMode * parameter in the Graphics.lineStyle() method.

Loader

The Loader class is used to load SWF files or image(JPG, PNG, or GIF) * files. Use the load() method to initiate loading. The loaded * display object is added as a child of the Loader object. *

Use the URLLoader class to load text or binary data.

LoaderInfo

The LoaderInfo class provides information about a loaded SWF file or a * loaded image file(JPEG, GIF, or PNG). LoaderInfo objects are available for * any display object. The information provided includes load progress, the * URLs of the loader and loaded content, the number of bytes total for the * media, and the nominal height and width of the media. *

You can access LoaderInfo objects in two ways:

MovieClip

The MovieClip class inherits from the following classes: Sprite, * DisplayObjectContainer, InteractiveObject, DisplayObject, and * EventDispatcher. *

Unlike the Sprite object, a MovieClip object has a timeline.

NativeMenu

PixelSnapping

The PixelSnapping class is an enumeration of constant values for setting * the pixel snapping options by using the pixelSnapping property * of a Bitmap object.

Scene

Shader

ShaderData

ShaderPrecision

Shape

This class is used to create lightweight shapes using the ActionScript * drawing application program interface(API). The Shape class includes a * graphics property, which lets you access methods from the * Graphics class. * *

The Sprite class also includes a graphicsproperty, and it * includes other features not available to the Shape class. 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.

SpreadMethod

The SpreadMethod class provides values for the spreadMethod * parameter in the beginGradientFill() and * lineGradientStyle() methods of the Graphics class. * *

The following example shows the same gradient fill using various spread * methods:

Sprite

The Sprite class is a basic display list building block: a display list * node that can display graphics and can also contain children. *

A Sprite object is similar to a movie clip, but does not have a * timeline. Sprite is an appropriate base class for objects that do not * require timelines. For example, Sprite would be a logical base class for * user interface(UI) components that typically do not use the timeline.

Stage

The Stage class represents the main drawing area. *

For SWF content running in the browser(in Flash® Player), * the Stage represents the entire area where Flash content is shown. For * content running in AIR on desktop operating systems, each NativeWindow * object has a corresponding Stage object.

Stage3D

StageAlign

The StageAlign class provides constant values to use for the * Stage.align property.

StageDisplayState

The StageDisplayState class provides values for the * Stage.displayState property.

StageQuality

The StageQuality class provides values for the Stage.quality * property.

StageScaleMode

The StageScaleMode class provides values for the * Stage.scaleMode property.

TriangleCulling

Defines codes for culling algorithms that determine which triangles not to * render when drawing triangle paths. *

The terms POSITIVE and NEGATIVE refer to the * sign of a triangle's normal along the z-axis. The normal is a 3D vector * that is perpendicular to the surface of the triangle.