Packagecom.catalystapps.gaf.display
Classpublic class GAFImage
InheritanceGAFImage Inheritance starling.display.Image
Implements com.catalystapps.gaf.display.IGAFImage, com.catalystapps.gaf.display.IMaxSize, com.catalystapps.gaf.display.IGAFDebug

GAFImage represents static GAF display object that is part of the GAFMovieClip.



Public Properties
 PropertyDefined By
  assetTexture : IGAFTexture
[read-only] Returns current IGAFTexture.
GAFImage
Public Methods
 MethodDefined By
  
GAFImage(assetTexture:IGAFTexture)
Creates a new GAFImage instance.
GAFImage
  
changeTexture(newTexture:IGAFTexture):void
Change the texture of the GAFImage to a new one.
GAFImage
  
Creates a new instance of GAFImage.
GAFImage
  
dispose():void
[override] Disposes all resources of the display object.
GAFImage
  
getBounds(targetSpace:DisplayObject, resultRect:Rectangle = null):Rectangle
[override]
GAFImage
Property Detail
assetTextureproperty
assetTexture:IGAFTexture  [read-only]

Returns current IGAFTexture.


Implementation
    public function get assetTexture():IGAFTexture
Constructor Detail
GAFImage()Constructor
public function GAFImage(assetTexture:IGAFTexture)

Creates a new GAFImage instance.

Parameters
assetTexture:IGAFTextureIGAFTexture from which it will be created.
Method Detail
changeTexture()method
public function changeTexture(newTexture:IGAFTexture):void

Change the texture of the GAFImage to a new one.

Parameters

newTexture:IGAFTexture — the new IGAFTexture which will be used to replace existing one.

copy()method 
public function copy():GAFImage

Creates a new instance of GAFImage.

Returns
GAFImage
dispose()method 
override public function dispose():void

Disposes all resources of the display object.

getBounds()method 
override public function getBounds(targetSpace:DisplayObject, resultRect:Rectangle = null):Rectangle

Parameters

targetSpace:DisplayObject
 
resultRect:Rectangle (default = null)

Returns
Rectangle