Class org.aswing.JLoadPane

Description

JLoadPane, a container load a external image/animation to be its floor.

See Also

Field Index

ON_LOAD_COMPLETE, ON_LOAD_ERROR, ON_LOAD_INIT, ON_LOAD_PROGRESS, ON_LOAD_START

Inherited from FloorPane

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Method Index

new JLoadPane()
getFloorMC(), getProgress(), isLoadedError()

Inherited from FloorPane

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Constructor Detail

JLoadPane

public function JLoadPane(path:String, prefferSizeStrategy:Number)

JLoadPane(path:String, prefferSizeStrategy:Number)
JLoadPane(path:String) prefferSizeStrategy default to PREFER_SIZE_BOTH
JLoadPane() path default to null,prefferSizeStrategy default to PREFER_SIZE_BOTH

Creates a JLoadPane with a path to load external image or animation file.

Parameters

paththe path of the extenal image/animation file.
prefferSizeStrategythe prefferedSize count strategy. Must be one of below:

See Also

Field Detail

ON_LOAD_COMPLETE

static public ON_LOAD_COMPLETE:String
When the file that was loaded.
onLoadComplete Event{source:Component}

ON_LOAD_ERROR

static public ON_LOAD_ERROR:String
When the file loaded has failed to load.
errorCode:A string that explains the reason for the failure, either "URLNotFound" or "LoadNeverCompleted".
onLoadError Event{source:Component, errorCode:String}

ON_LOAD_INIT

static public ON_LOAD_INIT:String
When the actions on the first frame of the loaded clip have been executed.
onLoadInit Event{source:Component}

ON_LOAD_PROGRESS

static public ON_LOAD_PROGRESS:String
Fires every time the loading content is written to the hard disk during the loading process
onLoadProgress Event{source:Component, loadedBytes:Number, totalBytes:Number}

ON_LOAD_START

static public ON_LOAD_START:String
When the a call has begun to download a file.
onLoadStart Event{source:Component}

Method Detail

getFloorMC

public function getFloorMC():MovieClip

Returns the loaded target movieclip.

Return

the loaded target movieclip.

Overrides

getFloorMC() in org.aswing.FloorPane

See Also

isLoadedError

public function isLoadedError():Boolean

Returns is error loaded.

See Also

getProgress

public function getProgress():Object

Returns a object contains bytesLoaded and bytesTotal properties that indicate the current loading status.