Packagecom.gaiaframework.api
Interfacepublic interface ISprite extends IDisplayObject, IAsset, flash.events.IEventDispatcher
SubinterfacesIBitmapSprite, IMovieClip

This is the interface for the SpriteAsset.

See also

SpriteAsset Documentation
flash.display.Sprite


Public Properties
 PropertyDefined by
 InheritedaccessibilityProperties : AccessibilityProperties
IDisplayObject
 Inheritedalpha : Number
IDisplayObject
 InheritedblendMode : String
IDisplayObject
  buttonMode : Boolean
ISprite
 Inheritedbytes : int
Returns the bytes attribute value set in the site.xml for byte-accurate preloading.
IAsset
 InheritedcacheAsBitmap : Boolean
IDisplayObject
  container : DisplayObject
[read-only] BitmapSpriteAssets return the Sprite containing the Loader and MovieClipAssets return the Loader.
ISprite
  contextMenu : ContextMenu
ISprite
 Inheriteddepth : String
Specifies the depth container the asset is assigned to.
IDisplayObject
  domain : String
Specifies the ApplicationDomain the Asset should load into.
ISprite
  doubleClickEnabled : Boolean
ISprite
  dropTarget : DisplayObject
[read-only]
ISprite
 Inheritedfilters : Array
IDisplayObject
  focusRect : Object
ISprite
  graphics : Graphics
[read-only]
ISprite
 Inheritedheight : Number
IDisplayObject
  hitArea : Sprite
ISprite
 Inheritedid : String
Returns the ID as set in site.xml.
IAsset
 Inheritedloader : Loader
Returns the loader.
IDisplayObject
 Inheritedmask : DisplayObject
IDisplayObject
  mouseChildren : Boolean
ISprite
  mouseEnabled : Boolean
ISprite
 InheritedmouseX : Number
IDisplayObject
 InheritedmouseY : Number
IDisplayObject
 Inheritedname : String
IDisplayObject
 Inheritednode : XML
Returns the raw XML node of the asset
IAsset
  numChildren : int
[read-only]
ISprite
 InheritedopaqueBackground : Object
IDisplayObject
 Inheritedorder : int
Returns the load order and position of the asset relative to other assets of the page.
IAsset
 Inheritedparent : DisplayObjectContainer
IDisplayObject
 InheritedpercentLoaded : Number
Returns the bytesLoaded / bytesTotal.
IAsset
 InheritedpreloadAsset : Boolean
Specifies a value of true if the asset is set to preload, or false if it is on-demand.
IAsset
 Inheritedroot : DisplayObject
IDisplayObject
 Inheritedrotation : Number
IDisplayObject
 Inheritedscale9Grid : Rectangle
IDisplayObject
 InheritedscaleX : Number
IDisplayObject
 InheritedscaleY : Number
IDisplayObject
 InheritedscrollRect : Rectangle
IDisplayObject
 InheritedshowProgress : Boolean
Specifies whether the asset will cause the asset preloader to appear when loaded on-demand.
IAsset
  soundTransform : SoundTransform
ISprite
 Inheritedsrc : String
Returns the source path of the asset.
IAsset
 Inheritedstage : Stage
IDisplayObject
  tabChildren : Boolean
ISprite
  tabEnabled : Boolean
ISprite
  tabIndex : int
ISprite
 Inheritedtitle : String
Specifies the title of the asset.
IAsset
 Inheritedtransform : Transform
IDisplayObject
  useHandCursor : Boolean
ISprite
 Inheritedvisible : Boolean
IDisplayObject
 Inheritedwidth : Number
IDisplayObject
 Inheritedx : Number
IDisplayObject
 Inheritedy : Number
IDisplayObject
Public Methods
 MethodDefined by
 Inherited
abort():void
Used to manually abort an on-demand asset load.
IAsset
  
addChild(child:DisplayObject):DisplayObject
ISprite
  
addChildAt(child:DisplayObject, index:int):DisplayObject
ISprite
  
areInaccessibleObjectsUnderPoint(point:Point):Boolean
ISprite
  
contains(child:DisplayObject):Boolean
ISprite
 Inherited
getBounds(obj:DisplayObject):Rectangle
IDisplayObject
 Inherited
Returns the loaded bytes of the file.
IAsset
 Inherited
Returns the total bytes of the file.
IAsset
  
getChildAt(index:int):DisplayObject
ISprite
  
getChildByName(name:String):DisplayObject
ISprite
  
getChildIndex(child:DisplayObject):int
ISprite
  
getObjectsUnderPoint(point:Point):Array
ISprite
 Inherited
getRect(obj:DisplayObject):Rectangle
IDisplayObject
 Inherited
globalToLocal(point:Point):Point
IDisplayObject
 Inherited
hitTestObject(obj:DisplayObject):Boolean
IDisplayObject
 Inherited
hitTestPoint(px:Number, py:Number, shapeFlag:Boolean = false):Boolean
IDisplayObject
 Inherited
load(... args):void
Used to load assets on-demand.
IAsset
 Inherited
localToGlobal(point:Point):Point
IDisplayObject
  
removeChild(child:DisplayObject):DisplayObject
ISprite
  
removeChildAt(index:int):DisplayObject
ISprite
  
setChildIndex(child:DisplayObject, index:int):void
ISprite
  
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
ISprite
  
stopDrag():void
ISprite
  
swapChildren(child1:DisplayObject, child2:DisplayObject):void
ISprite
  
swapChildrenAt(index1:int, index2:int):void
ISprite
Events
 EventSummaryDefined by
 Inherited Dispatched when the asset is finished loading.IAsset
Property detail
buttonModeproperty
buttonMode:Boolean  [read-write]

Implementation
    public function get buttonMode():Boolean
    public function set buttonMode(value:Boolean):void

See also

containerproperty 
container:DisplayObject  [read-write]

[read-only] BitmapSpriteAssets return the Sprite containing the Loader and MovieClipAssets return the Loader.

Implementation
    public function get container():DisplayObject
    public function set container(value:DisplayObject):void
contextMenuproperty 
contextMenu:ContextMenu  [read-write]

Implementation
    public function get contextMenu():ContextMenu
    public function set contextMenu(value:ContextMenu):void

See also

domainproperty 
domain:String  [read-write]

Specifies the ApplicationDomain the Asset should load into.

Implementation
    public function get domain():String
    public function set domain(value:String):void

See also

doubleClickEnabledproperty 
doubleClickEnabled:Boolean  [read-write]

Implementation
    public function get doubleClickEnabled():Boolean
    public function set doubleClickEnabled(value:Boolean):void

See also

dropTargetproperty 
dropTarget:DisplayObject  [read-only]

Implementation
    public function get dropTarget():DisplayObject

See also

focusRectproperty 
focusRect:Object  [read-write]

Implementation
    public function get focusRect():Object
    public function set focusRect(value:Object):void

See also

graphicsproperty 
graphics:Graphics  [read-only]

Implementation
    public function get graphics():Graphics

See also

hitAreaproperty 
hitArea:Sprite  [read-write]

Implementation
    public function get hitArea():Sprite
    public function set hitArea(value:Sprite):void

See also

mouseChildrenproperty 
mouseChildren:Boolean  [read-write]

Implementation
    public function get mouseChildren():Boolean
    public function set mouseChildren(value:Boolean):void

See also

mouseEnabledproperty 
mouseEnabled:Boolean  [read-write]

Implementation
    public function get mouseEnabled():Boolean
    public function set mouseEnabled(value:Boolean):void

See also

numChildrenproperty 
numChildren:int  [read-only]

Implementation
    public function get numChildren():int

See also

soundTransformproperty 
soundTransform:SoundTransform  [read-write]

Implementation
    public function get soundTransform():SoundTransform
    public function set soundTransform(value:SoundTransform):void

See also

tabChildrenproperty 
tabChildren:Boolean  [read-write]

Implementation
    public function get tabChildren():Boolean
    public function set tabChildren(value:Boolean):void

See also

tabEnabledproperty 
tabEnabled:Boolean  [read-write]

Implementation
    public function get tabEnabled():Boolean
    public function set tabEnabled(value:Boolean):void

See also

tabIndexproperty 
tabIndex:int  [read-write]

Implementation
    public function get tabIndex():int
    public function set tabIndex(value:int):void

See also

useHandCursorproperty 
useHandCursor:Boolean  [read-write]

Implementation
    public function get useHandCursor():Boolean
    public function set useHandCursor(value:Boolean):void

See also

Method detail
addChild()method
public function addChild(child:DisplayObject):DisplayObject

Parameters
child:DisplayObject

Returns
DisplayObject

See also

addChildAt()method 
public function addChildAt(child:DisplayObject, index:int):DisplayObject

Parameters
child:DisplayObject
 
index:int

Returns
DisplayObject

See also

areInaccessibleObjectsUnderPoint()method 
public function areInaccessibleObjectsUnderPoint(point:Point):Boolean

Parameters
point:Point

Returns
Boolean

See also

contains()method 
public function contains(child:DisplayObject):Boolean

Parameters
child:DisplayObject

Returns
Boolean

See also

getChildAt()method 
public function getChildAt(index:int):DisplayObject

Parameters
index:int

Returns
DisplayObject

See also

getChildByName()method 
public function getChildByName(name:String):DisplayObject

Parameters
name:String

Returns
DisplayObject

See also

getChildIndex()method 
public function getChildIndex(child:DisplayObject):int

Parameters
child:DisplayObject

Returns
int

See also

getObjectsUnderPoint()method 
public function getObjectsUnderPoint(point:Point):Array

Parameters
point:Point

Returns
Array

See also

removeChild()method 
public function removeChild(child:DisplayObject):DisplayObject

Parameters
child:DisplayObject

Returns
DisplayObject

See also

removeChildAt()method 
public function removeChildAt(index:int):DisplayObject

Parameters
index:int

Returns
DisplayObject

See also

setChildIndex()method 
public function setChildIndex(child:DisplayObject, index:int):void

Parameters
child:DisplayObject
 
index:int

See also

startDrag()method 
public function startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void

Parameters
lockCenter:Boolean (default = false)
 
bounds:Rectangle (default = null)

See also

stopDrag()method 
public function stopDrag():void

See also

swapChildren()method 
public function swapChildren(child1:DisplayObject, child2:DisplayObject):void

Parameters
child1:DisplayObject
 
child2:DisplayObject

See also

swapChildrenAt()method 
public function swapChildrenAt(index1:int, index2:int):void

Parameters
index1:int
 
index2:int

See also