The NativeTextureAtlas creates and manipulates TextureAtlas from traditional flash.display.DisplayObject.
protected var _bitmapData:BitmapData
protected var _movieClip:MovieClip
protected var _scale:Number
bitmapData:BitmapData
[read-only]
The BitmapData created by this NativeTextureAtlas instance.
Implementation public function get bitmapData():BitmapData
movieClip:MovieClip
[read-only]
The MovieClip created by this NativeTextureAtlas instance.
Implementation public function get movieClip():MovieClip
name:String
[read-only]
The name of this NativeTextureAtlas instance.
Implementation public function get name():String
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 )
|
public function dispose():void
Clean up all resources used by this NativeTextureAtlas instance.
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.
|
dragonBones_internal function movieClipToBitmapData():void
protected function parseData(textureAtlasXML:XML):void
Parameters
Mon Jun 17 2013, 02:36 PM +08:00