openfl.display

..
Application

Bitmap

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

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 openfl.Assets or openfl.display.Loader classes.

BitmapDataChannel

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

BlendMode

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

  • The blendMode property of the openfl.display.DisplayObject class.
  • The blendMode parameter of the draw() method of the openfl.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 openfl.display.Graphics.lineStyle() method. You can specify the following three types of caps:

DOMSprite

DirectRenderer

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 openfl. 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.

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.

FPS

FrameLabel

GradientType

The GradientType class provides values for the type parameter in the beginGradientFill() and lineGradientStyle() methods of the openfl.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().

GraphicsBitmapFill

GraphicsEndFill

Indicates the end of a graphics fill. Use a GraphicsEndFill object with the Graphics.drawGraphicsData() method.

GraphicsGradientFill

GraphicsPath

A collection of drawing commands and the coordinate parameters for those commands.

GraphicsPathCommand

Defines the values to use for specifying path-drawing commands.

GraphicsPathWinding

The GraphicsPathWinding class provides values for the openfl.display.GraphicsPath.winding property and the openfl.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:

GraphicsSolidFill

Defines a solid fill.

GraphicsStroke

Defines a line style or stroke.

IBitmapDrawable

IGraphicsData

IGraphicsFill

IGraphicsPath

IGraphicsStroke

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.

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.

JPEGEncoderOptions

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 openfl.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.

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.

MovieClip

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

OpenGLView

PNGEncoderOptions

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.

Preloader

Shader

ShaderData

ShaderInput

ShaderJob

ShaderParameter

ShaderParameterType

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.

SimpleButton

The SimpleButton class lets you control all instances of button symbols in a SWF file.

SpreadMethod

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

Sprite

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

Stage

The Stage class represents the main drawing area.

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.

Tile

Tilemap

Tileset

TriangleCulling

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

Window