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

This is the interface for the DisplayObjectAsset. DisplayObjectAsset extends AbstractAsset and is the base asset for SpriteAsset (and thus, MovieClipAsset), BitmapAsset and BitmapSpriteAsset.

See also

DisplayObjectAsset Documentation
flash.display.DisplayObject


Public Properties
 PropertyDefined by
  accessibilityProperties : AccessibilityProperties
IDisplayObject
  alpha : Number
IDisplayObject
  blendMode : String
IDisplayObject
 Inheritedbytes : int
Returns the bytes attribute value set in the site.xml for byte-accurate preloading.
IAsset
  cacheAsBitmap : Boolean
IDisplayObject
  depth : String
Specifies the depth container the asset is assigned to.
IDisplayObject
  filters : Array
IDisplayObject
  height : Number
IDisplayObject
 Inheritedid : String
Returns the ID as set in site.xml.
IAsset
  loader : Loader
[read-only] Returns the loader.
IDisplayObject
  mask : DisplayObject
IDisplayObject
  mouseX : Number
[read-only]
IDisplayObject
  mouseY : Number
[read-only]
IDisplayObject
  name : String
IDisplayObject
 Inheritednode : XML
Returns the raw XML node of the asset
IAsset
  opaqueBackground : Object
IDisplayObject
 Inheritedorder : int
Returns the load order and position of the asset relative to other assets of the page.
IAsset
  parent : DisplayObjectContainer
[read-only]
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
  root : DisplayObject
[read-only]
IDisplayObject
  rotation : Number
IDisplayObject
  scale9Grid : Rectangle
IDisplayObject
  scaleX : Number
IDisplayObject
  scaleY : Number
IDisplayObject
  scrollRect : Rectangle
IDisplayObject
 InheritedshowProgress : Boolean
Specifies whether the asset will cause the asset preloader to appear when loaded on-demand.
IAsset
 Inheritedsrc : String
Returns the source path of the asset.
IAsset
  stage : Stage
[read-only]
IDisplayObject
 Inheritedtitle : String
Specifies the title of the asset.
IAsset
  transform : Transform
IDisplayObject
  visible : Boolean
IDisplayObject
  width : Number
IDisplayObject
  x : Number
IDisplayObject
  y : Number
IDisplayObject
Public Methods
 MethodDefined by
 Inherited
abort():void
Used to manually abort an on-demand asset load.
IAsset
  
getBounds(obj:DisplayObject):Rectangle
IDisplayObject
 Inherited
Returns the loaded bytes of the file.
IAsset
 Inherited
Returns the total bytes of the file.
IAsset
  
getRect(obj:DisplayObject):Rectangle
IDisplayObject
  
globalToLocal(point:Point):Point
IDisplayObject
  
hitTestObject(obj:DisplayObject):Boolean
IDisplayObject
  
hitTestPoint(px:Number, py:Number, shapeFlag:Boolean = false):Boolean
IDisplayObject
 Inherited
load(... args):void
Used to load assets on-demand.
IAsset
  
localToGlobal(point:Point):Point
IDisplayObject
Events
 EventSummaryDefined by
 Inherited Dispatched when the asset is finished loading.IAsset
Property detail
accessibilityPropertiesproperty
accessibilityProperties:AccessibilityProperties  [read-write]

Implementation
    public function get accessibilityProperties():AccessibilityProperties
    public function set accessibilityProperties(value:AccessibilityProperties):void

See also

alphaproperty 
alpha:Number  [read-write]

Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void

See also

blendModeproperty 
blendMode:String  [read-write]

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

See also

cacheAsBitmapproperty 
cacheAsBitmap:Boolean  [read-write]

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

See also

depthproperty 
depth:String  [read-write]

Specifies the depth container the asset is assigned to.

Implementation
    public function get depth():String
    public function set depth(value:String):void
filtersproperty 
filters:Array  [read-write]

Implementation
    public function get filters():Array
    public function set filters(value:Array):void

See also

heightproperty 
height:Number  [read-write]

Implementation
    public function get height():Number
    public function set height(value:Number):void

See also

loaderproperty 
loader:Loader  [read-only]

Returns the loader.

Implementation
    public function get loader():Loader
maskproperty 
mask:DisplayObject  [read-write]

Implementation
    public function get mask():DisplayObject
    public function set mask(value:DisplayObject):void

See also

mouseXproperty 
mouseX:Number  [read-only]

Implementation
    public function get mouseX():Number

See also

mouseYproperty 
mouseY:Number  [read-only]

Implementation
    public function get mouseY():Number

See also

nameproperty 
name:String  [read-write]

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

See also

opaqueBackgroundproperty 
opaqueBackground:Object  [read-write]

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

See also

parentproperty 
parent:DisplayObjectContainer  [read-only]

Implementation
    public function get parent():DisplayObjectContainer

See also

rootproperty 
root:DisplayObject  [read-only]

Implementation
    public function get root():DisplayObject

See also

rotationproperty 
rotation:Number  [read-write]

Implementation
    public function get rotation():Number
    public function set rotation(value:Number):void

See also

scale9Gridproperty 
scale9Grid:Rectangle  [read-write]

Implementation
    public function get scale9Grid():Rectangle
    public function set scale9Grid(value:Rectangle):void

See also

scaleXproperty 
scaleX:Number  [read-write]

Implementation
    public function get scaleX():Number
    public function set scaleX(value:Number):void

See also

scaleYproperty 
scaleY:Number  [read-write]

Implementation
    public function get scaleY():Number
    public function set scaleY(value:Number):void

See also

scrollRectproperty 
scrollRect:Rectangle  [read-write]

Implementation
    public function get scrollRect():Rectangle
    public function set scrollRect(value:Rectangle):void

See also

stageproperty 
stage:Stage  [read-only]

Implementation
    public function get stage():Stage

See also

transformproperty 
transform:Transform  [read-write]

Implementation
    public function get transform():Transform
    public function set transform(value:Transform):void

See also

visibleproperty 
visible:Boolean  [read-write]

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

See also

widthproperty 
width:Number  [read-write]

Implementation
    public function get width():Number
    public function set width(value:Number):void

See also

xproperty 
x:Number  [read-write]

Implementation
    public function get x():Number
    public function set x(value:Number):void

See also

yproperty 
y:Number  [read-write]

Implementation
    public function get y():Number
    public function set y(value:Number):void

See also

Method detail
getBounds()method
public function getBounds(obj:DisplayObject):Rectangle

Parameters
obj:DisplayObject

Returns
Rectangle

See also

getRect()method 
public function getRect(obj:DisplayObject):Rectangle

Parameters
obj:DisplayObject

Returns
Rectangle

See also

globalToLocal()method 
public function globalToLocal(point:Point):Point

Parameters
point:Point

Returns
Point

See also

hitTestObject()method 
public function hitTestObject(obj:DisplayObject):Boolean

Parameters
obj:DisplayObject

Returns
Boolean

See also

hitTestPoint()method 
public function hitTestPoint(px:Number, py:Number, shapeFlag:Boolean = false):Boolean

Parameters
px:Number
 
py:Number
 
shapeFlag:Boolean (default = false)

Returns
Boolean

See also

localToGlobal()method 
public function localToGlobal(point:Point):Point

Parameters
point:Point

Returns
Point

See also