Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
FlexBitmap

Package | mx.core
Class | public class FlexBitmap
Inheritance | FlexBitmap flash.display.Bitmap
Subclasses | BitmapAsset

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

FlexBitmap is a subclass of the Player's Bitmap class. It overrides the `toString()` method to return a string indicating the location of the object within the hierarchy of DisplayObjects in the application.

Public Methods

| Method | Defined By
--- | --- | ---
|  | FlexBitmap(bitmapData:BitmapData = null, pixelSnapping:String = auto, smoothing:Boolean = false) Constructor. | FlexBitmap
|  | toString():String [override] Returns a string indicating the location of this object within the hierarchy of DisplayObjects in the Application. | FlexBitmap

Constructor Detail

FlexBitmap | () | Constructor

`public function FlexBitmap(bitmapData:BitmapData = null, pixelSnapping:String = auto, smoothing:Boolean = false)`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructor.

Sets the `name` property to a string returned by the `createUniqueName()` method of the mx.utils.NameUtils class. This string is the name of the object's class concatenated with an integer that is unique within the application, such as `"FlexBitmap12"`.

Parameters

| `bitmapData:BitmapData` (default = `null`)`` — The data for the bitmap.
| `pixelSnapping:String` (default = `auto`)`` — Whether or not the bitmap is snapped to the nearest pixel.
| `smoothing:Boolean` (default = `false`)`` — Whether or not the bitmap is smoothed when scaled.

See also

flash.display.DisplayObject.name
mx.utils.NameUtil.createUniqueName()
Method Detail

toString | () | method

`override public function toString():String`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Returns a string indicating the location of this object within the hierarchy of DisplayObjects in the Application. This string, such as `"MyApp0.HBox5.FlexBitmap12"`, is built by the `displayObjectToString()` method of the mx.utils.NameUtils class from the `name` property of the object and its ancestors.

Returns

| `String` — A String indicating the location of this object within the DisplayObject hierarchy.

See also

flash.display.DisplayObject.name
mx.utils.NameUtil.displayObjectToString()

Wed Nov 15 2017, 09:50 AM +01:00