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

This is the interface for the PageAsset. PageAsset extends MovieClipAsset.

See also

Pages Documentation


Public Properties
 PropertyDefined by
 InheritedaccessibilityProperties : AccessibilityProperties
IDisplayObject
 Inheritedalpha : Number
IDisplayObject
  assetArray : Array
[read-only] Returns an array of the assets in the order they are listed in the site.xml.
IPageAsset
  assetPath : String
Use this attribute to set the folder paths for all assets of that page.
IPageAsset
  assets : Object
A hash of the Page's assets (stored by their id).
IPageAsset
 InheritedblendMode : String
IDisplayObject
  branch : String
[read-only] Returns the page's branch, starting from the index page.
IPageAsset
 InheritedbuttonMode : Boolean
ISprite
 Inheritedbytes : int
Returns the bytes attribute value set in the site.xml for byte-accurate preloading.
IAsset
 InheritedcacheAsBitmap : Boolean
IDisplayObject
  children : Object
[read-only] A hash of the Page's child Pages (stored by their id).
IPageAsset
 Inheritedcontainer : DisplayObject
[read-only] BitmapSpriteAssets return the Sprite containing the Loader and MovieClipAssets return the Loader.
ISprite
 Inheritedcontent : MovieClip
Returns the loader.content MovieClip.
IMovieClip
 InheritedcontextMenu : ContextMenu
ISprite
  copy : Object
[read-only] A hash of the Page's copy (stored by their id).
IPageAsset
 InheritedcurrentFrame : int
IMovieClip
 InheritedcurrentLabel : String
IMovieClip
 InheritedcurrentLabels : Array
IMovieClip
  defaultChild : String
This is set to the first child of the Page from the site.xml structure by default.
IPageAsset
 Inheriteddepth : String
Specifies the depth container the asset is assigned to.
IDisplayObject
 Inheriteddomain : String
Specifies the ApplicationDomain the Asset should load into.
ISprite
 InheriteddoubleClickEnabled : Boolean
ISprite
 InheriteddropTarget : DisplayObject
ISprite
 Inheritedenabled : Boolean
IMovieClip
  external : Boolean
[read-only] Returns true if the page is external, and false if the page is internal.
IPageAsset
 Inheritedfilters : Array
IDisplayObject
  flow : String
Returns the custom flow the page uses.
IPageAsset
 InheritedfocusRect : Object
ISprite
 InheritedframesLoaded : int
IMovieClip
 Inheritedgraphics : Graphics
ISprite
 Inheritedheight : Number
IDisplayObject
 InheritedhitArea : Sprite
ISprite
 Inheritedid : String
Returns the ID as set in site.xml.
IAsset
  landing : Boolean
If you want to override Gaia's default behavior of loading the default child of a page branch, set landing="true" and Gaia will stop on this page if you tell it to goto this page.
IPageAsset
 Inheritedloader : Loader
Returns the loader.
IDisplayObject
 Inheritedmask : DisplayObject
IDisplayObject
  menu : Boolean
Returns a Boolean whether the page will appear in the context menu.
IPageAsset
 InheritedmouseChildren : Boolean
ISprite
 InheritedmouseEnabled : Boolean
ISprite
 InheritedmouseX : Number
IDisplayObject
 InheritedmouseY : Number
IDisplayObject
 Inheritedname : String
IDisplayObject
 Inheritednode : XML
Returns the raw XML node of the asset
IAsset
 InheritednumChildren : int
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
  route : String
[read-only] Returns the route of the page if set in the site.xml.
IPageAsset
 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
 InheritedsoundTransform : SoundTransform
ISprite
 Inheritedsrc : String
Returns the source path of the asset.
IAsset
 Inheritedstage : Stage
IDisplayObject
 InheritedtabChildren : Boolean
ISprite
 InheritedtabEnabled : Boolean
ISprite
 InheritedtabIndex : int
ISprite
 Inheritedtitle : String
Specifies the title of the asset.
IAsset
 InheritedtotalFrames : int
IMovieClip
 InheritedtrackAsMenu : Boolean
IMovieClip
 Inheritedtransform : Transform
IDisplayObject
 InheriteduseHandCursor : Boolean
ISprite
 Inheritedvisible : Boolean
IDisplayObject
 Inheritedwidth : Number
IDisplayObject
  window : String
If the page is external (src attribute is not a swf or a javascript method), you can define the target window it will open up in.
IPageAsset
 Inheritedx : Number
IDisplayObject
 Inheritedy : Number
IDisplayObject
Public Methods
 MethodDefined by
 Inherited
abort():void
Used to manually abort an on-demand asset load.
IAsset
 Inherited
addChild(child:DisplayObject):DisplayObject
ISprite
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
ISprite
 Inherited
areInaccessibleObjectsUnderPoint(point:Point):Boolean
ISprite
 Inherited
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
 Inherited
getChildAt(index:int):DisplayObject
ISprite
 Inherited
getChildByName(name:String):DisplayObject
ISprite
 Inherited
getChildIndex(child:DisplayObject):int
ISprite
 Inherited
getObjectsUnderPoint(point:Point):Array
ISprite
  
[read-only] This method returns the page's parent PageAsset.
IPageAsset
 Inherited
getRect(obj:DisplayObject):Rectangle
IDisplayObject
 Inherited
globalToLocal(point:Point):Point
IDisplayObject
 Inherited
gotoAndPlay(value:Object):void
IMovieClip
 Inherited
gotoAndStop(value:Object):void
IMovieClip
 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
 Inherited
nextFrame():void
IMovieClip
 Inherited
play():void
IMovieClip
 Inherited
prevFrame():void
IMovieClip
 Inherited
removeChild(child:DisplayObject):DisplayObject
ISprite
 Inherited
removeChildAt(index:int):DisplayObject
ISprite
 Inherited
setChildIndex(child:DisplayObject, index:int):void
ISprite
 Inherited
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
ISprite
 Inherited
stop():void
IMovieClip
 Inherited
stopDrag():void
ISprite
 Inherited
swapChildren(child1:DisplayObject, child2:DisplayObject):void
ISprite
 Inherited
swapChildrenAt(index1:int, index2:int):void
ISprite
Events
 EventSummaryDefined by
 Inherited Dispatched when the asset is finished loading.IAsset
Property detail
assetArrayproperty
assetArray:Array  [read-only]

Returns an array of the assets in the order they are listed in the site.xml. This getter creates the array on the fly every time in order to support dynamically added assets, so make sure you store a reference to it when iterating through it, otherwise you will be recreating the Array every iteration - not good!

var assetArray:Array = page.assetArray;
var len:int = assetArray.length;
for (var i:int = 0; i < len; i++)
{
    trace(assetArray[i]);
}

Implementation
    public function get assetArray():Array
assetPathproperty 
assetPath:String  [read-write]

Use this attribute to set the folder paths for all assets of that page. All assets inside this page will load from this folder path so you can organize your assets without bloating your site.xml. Make sure your assetPath ends in a forward slash! You can use ../ in the asset node src attribute to go up to parent folders. This trumps the site node assetPath for the page that it is set on.

Implementation
    public function get assetPath():String
    public function set assetPath(value:String):void
assetsproperty 
assets:Object  [read-write]

A hash of the Page's assets (stored by their id).

Implementation
    public function get assets():Object
    public function set assets(value:Object):void
branchproperty 
branch:String  [read-only]

Returns the page's branch, starting from the index page.

Implementation
    public function get branch():String
childrenproperty 
children:Object  [read-only]

A hash of the Page's child Pages (stored by their id).

Implementation
    public function get children():Object
copyproperty 
copy:Object  [read-only]

A hash of the Page's copy (stored by their id).

Implementation
    public function get copy():Object

See also

defaultChildproperty 
defaultChild:String  [read-write]

This is set to the first child of the Page from the site.xml structure by default. You can set this during runtime. One good use for this is if an intro page is the first child of a Page and you want to not go back to the intro from then on if you navigate to the intro page's parent page, you can set the parent's defaultChild to another of its children. This is also helpful during development if you want Gaia to go straight to a specific child.

Implementation
    public function get defaultChild():String
    public function set defaultChild(value:String):void
externalproperty 
external:Boolean  [read-only]

Returns true if the page is external, and false if the page is internal.

Implementation
    public function get external():Boolean
flowproperty 
flow:String  [read-write]

Returns the custom flow the page uses. This is null by default.

Implementation
    public function get flow():String
    public function set flow(value:String):void
landingproperty 
landing:Boolean  [read-write]

If you want to override Gaia's default behavior of loading the default child of a page branch, set landing="true" and Gaia will stop on this page if you tell it to goto this page.

Implementation
    public function get landing():Boolean
    public function set landing(value:Boolean):void
menuproperty 
menu:Boolean  [read-write]

Returns a Boolean whether the page will appear in the context menu. true if the page appears in the context menu, and false if not.

Implementation
    public function get menu():Boolean
    public function set menu(value:Boolean):void
routeproperty 
route:String  [read-only]

Returns the route of the page if set in the site.xml. If you don't want the page's title to be its "pretty URL", or if your page title contains a special character which cannot be displayed in the address bar (such as non-Latin characters), set the value of this attribute for the page's url in the address bar. Routes must be unique and can only be applied to terminal pages (pages that have no children).

Implementation
    public function get route():String

See also

windowproperty 
window:String  [read-write]

If the page is external (src attribute is not a swf or a javascript method), you can define the target window it will open up in. The default is "_self". If you want it to open in a new window, use "_blank".

Implementation
    public function get window():String
    public function set window(value:String):void
Method detail
getParent()method
public function getParent():IPageAsset

[read-only] This method returns the page's parent PageAsset.

Returns
IPageAsset