| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The URLLoaderStrategy class define a loading strategy using
Lowra URL loader.
public function URLLoaderStrategy(dataFormat:String = null)
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates new URLLoaderStrategy instance.
Parameters
| dataFormat:String (default = null) — (optional) Downloaded data format
|
See also
protected function _onComplete(e:Event):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
protected function _onHttpStatus(e:HTTPStatusEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
protected function _onIOError(e:IOErrorEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
protected function _onOpen(event:Event):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
protected function _onProgress(e:ProgressEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
protected function _onSecurityError(e:SecurityErrorEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
public function getBytesLoaded():uint
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns current loaded bytes amount.
Returns
public function getBytesTotal():uint
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns total bytes to load by this strategy.
Returns
public static function isValidDataFormat(dataFormat:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
Returns
public function load(request:URLRequest = null, context:LoaderContext = null):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Loads content.
Parameters
| request:URLRequest (default = null) — The absolute or relative URL of the content to load.
|
| |
| context:LoaderContext (default = null) — (optional) A LoaderContext object, which has properties that define the following:
- Whether or not to check for the existence of a policy file upon loading the object
- The ApplicationDomain for the loaded object
- The SecurityDomain for the loaded object
/ul>
For complete details, see the description of the properties in the
LoaderContext class.
|
public function release():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Releases loading process.
public function setDataFormat(dataFormat:String):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets how the downloaded data is received.
If the value of the dataFormat property is
URLLoaderDataFormat.TEXT,
the received data is a string containing the text of
the loaded file.
If the value of the dataFormat property is
URLLoaderDataFormat.BINARY, the received data is
a ByteArray object containing the raw binary data.
If the value of the dataFormat property is
URLLoaderDataFormat.VARIABLES, the received data is
a URLVariables object containing the URL-encoded variables.
The default is URLLoaderStrategy.TEXT
Parameters
| dataFormat:String — Downloaded data format
|
public function setOwner(owner:Loader):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets the owner of this strategy.
Parameters
| owner:Loader — object who use this strategy
|
public function toString():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string representation of this instance.
Returns
| String — the string representation of this instance
|
public static const BINARY:String = "binary"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Specifies that downloaded data is received as raw binary data.
public static const TEXT:String = "text"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Specifies that downloaded data is received as text.
public static const VARIABLES:String = "variables"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Specifies that downloaded data is received as URL-encoded variables.
LowRA API documentation 2008- 2009
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1
mer. févr. 25 2009, 9:22 AM GMT+01:00