Packageaway3d.loading
Classpublic class BitmapDataResource
ImplementsIResource

BitmapDataResource is a wrapper for loaded BitmapData, allowing it to be used uniformly as a resource when loading, parsing, and listing/resolving dependencies.

Public Properties
 PropertyDefined by
  bitmapData : BitmapData
The bitmapData to be treated as a resource.
BitmapDataResource
  name : String
The name of the resource.
BitmapDataResource
Public Methods
 MethodDefined by
  
BitmapDataResource
(bitmapData:BitmapData = null)
Creates a new BitmapDataResource object.
BitmapDataResource
  
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
BitmapDataResource
Property detail
bitmapDataproperty
bitmapData:BitmapData  [read-write]

The bitmapData to be treated as a resource.

Implementation
    public function get bitmapData():BitmapData
    public function set bitmapData(value:BitmapData):void
nameproperty 
name:String  [read-write]

The name of the resource.

Implementation
    public function get name():String
    public function set name(value:String):void
Constructor detail
BitmapDataResource()constructor
public function BitmapDataResource(bitmapData:BitmapData = null)Parameters
bitmapData:BitmapData (default = null) — An optional BitmapData object to use as the resource data.
Init Parameters
Method detail
dispose()method
public function dispose(deep:Boolean):void

Cleans up any resources used by the current object.

Parameters
deep:Boolean — Indicates whether other resources should be cleaned up, that could potentially be shared across different instances.
Wiki link
Click to go to the wiki page for 'away3d.loading.BitmapDataResource'

Code examples

Comments