class org.aswing.JLoadPane extends AssetPane
JLoadPane, a container load a external image/animation to be its asset. @author paling
![]() | Show Events | Hide Events
|
Instance Fields
function new(?url:Dynamic = null, ?prefferSizeStrategy:Int = 1): Void
Creates a JLoadPane with a path to load external image or animation file.
The asset of the JLoadPane will only be available after load completed. It mean
AssetPane.asset
will return null before load completed.
url | the path string or a URLRequst instance, null to make it do not load any thing. |
prefferSizeStrategy | the prefferedSize count strategy. Must be one of below:
|
context | the loader context. |
function load(request:URLRequest): Void
Load the asset.
The asset of the JLoadPane will only be available after load completed. It mean
AssetPane.asset
will return null before load completed.
request | The absolute or relative URL of the SWF, JPEG, GIF, or PNG file to be loaded. A relative path must be relative to the main SWF file. Absolute URLs must include the protocol reference, such as http:// or file:///. Filenames cannot include disk drive specifications. |
context | (default = null) A LoaderContext object. |