PackagedragonBones.textures
Classpublic class NativeTextureAtlas
InheritanceNativeTextureAtlas Inheritance Object
Implements ITextureAtlas

The NativeTextureAtlas creates and manipulates TextureAtlas from traditional flash.display.DisplayObject.



Public Properties
 PropertyDefined By
  bitmapData : BitmapData
[read-only] The BitmapData created by this NativeTextureAtlas instance.
NativeTextureAtlas
  movieClip : MovieClip
[read-only] The MovieClip created by this NativeTextureAtlas instance.
NativeTextureAtlas
  name : String
[read-only] The name of this NativeTextureAtlas instance.
NativeTextureAtlas
Protected Properties
 PropertyDefined By
  _bitmapData : BitmapData
NativeTextureAtlas
  _movieClip : MovieClip
NativeTextureAtlas
  _scale : Number
NativeTextureAtlas
Public Methods
 MethodDefined By
  
NativeTextureAtlas(texture:Object, textureAtlasXML:XML, textureScale:Number = 1, isDifferentXML:Boolean = false)
Creates a new NativeTextureAtlas instance.
NativeTextureAtlas
  
dispose():void
Clean up all resources used by this NativeTextureAtlas instance.
NativeTextureAtlas
  
getRegion(name:String):Rectangle
The area occupied by all assets related to that name.
NativeTextureAtlas
Protected Methods
 MethodDefined By
  
parseData(textureAtlasXML:XML):void
NativeTextureAtlas
Property Detail
_bitmapDataproperty
protected var _bitmapData:BitmapData

_movieClipproperty 
protected var _movieClip:MovieClip

_scaleproperty 
protected var _scale:Number

bitmapDataproperty 
bitmapData:BitmapData  [read-only]

The BitmapData created by this NativeTextureAtlas instance.


Implementation
    public function get bitmapData():BitmapData
movieClipproperty 
movieClip:MovieClip  [read-only]

The MovieClip created by this NativeTextureAtlas instance.


Implementation
    public function get movieClip():MovieClip
nameproperty 
name:String  [read-only]

The name of this NativeTextureAtlas instance.


Implementation
    public function get name():String
Constructor Detail
NativeTextureAtlas()Constructor
public function NativeTextureAtlas(texture:Object, textureAtlasXML:XML, textureScale:Number = 1, isDifferentXML:Boolean = false)

Creates a new NativeTextureAtlas instance.

Parameters
texture:Object — A MovieClip or Bitmap.
 
textureAtlasXML:XML — The textureAtlas xml.
 
textureScale:Number (default = 1) — A scale value (x and y axis)
 
isDifferentXML:Boolean (default = false)
Method Detail
dispose()method
public function dispose():void

Clean up all resources used by this NativeTextureAtlas instance.

getRegion()method 
public function getRegion(name:String):Rectangle

The area occupied by all assets related to that name.

Parameters

name:String — The name of these assets.

Returns
Rectangle — Rectangle The area occupied by all assets related to that name.
movieClipToBitmapData()method 
dragonBones_internal function movieClipToBitmapData():void

parseData()method 
protected function parseData(textureAtlasXML:XML):void

Parameters

textureAtlasXML:XML