API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class DataRequest

Package | org.openscales.core.request
Class | public class DataRequest
Inheritance | DataRequest AbstractRequest

DisplayRequest is used to download binary data available from an URL, like picture

Public Properties

| Property | Defined by
--- | --- | ---
|  | loader : Loader [read-only] | DataRequest

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _onComplete : Function = null | AbstractRequest
|  | _onFailure : Function = null | AbstractRequest

Public Methods

| Method | Defined by
--- | --- | ---
|  | DataRequest(url:String, onComplete:Function = null, proxy:String = null, security:ISecurity = null, onFailure:Function = null) Create a new Request to download data like images | DataRequest
|  | destroy():void | DataRequest

Property detail

loader | property

`loader:Loader` [read-only]Implementation
`public function get loader():Loader`
Constructor detail

DataRequest | () | constructor

`public function DataRequest(url:String, onComplete:Function = null, proxy:String = null, security:ISecurity = null, onFailure:Function = null)`

Create a new Request to download data like images

Parameters

| `url:String` — URL of the data to download, for example http://server/dir/image123.png
| `onComplete:Function` (default = `null`)`` — If a proxy (server side script) is used to avoid cross domain issues, specify its address here, for example http://server/proxy.php?url=
| `proxy:String` (default = `null`)`` — Function called when the data has been downloaded
| `security:ISecurity` (default = `null`)`` — Function called of an error occured
| `onFailure:Function` (default = `null`)``

Method detail

destroy | () | method

`public override function destroy():void`