| Package | xp.utils |
| Class | public class FileDownloadManager |
| Inheritance | FileDownloadManager flash.events.EventDispatcher |
See also
| Property | Defined by | ||
|---|---|---|---|
| url : String The destination url to upload to
| FileDownloadManager | ||
| Method | Defined by | ||
|---|---|---|---|
|
FileDownloadManager(url:String)
Create a new instance of the file upload manager
| FileDownloadManager | ||
|
onComplete(fileRef:Object):void
Callback when a file has been loaded
| FileDownloadManager | ||
|
onHTTPError(fileRef:Object, httpError:String):void
Callback on a HTTP error
| FileDownloadManager | ||
|
onIOError(fileRef:Object):void
Callback on a file IO error
| FileDownloadManager | ||
|
onProgress(fileRef:Object, bytesLoaded:Number, bytesTotal:Number):void
Callback as a file is being loaded
| FileDownloadManager | ||
|
onSecurityError(fileRef:Object, errorCode:String):void
Callback on a file security error
| FileDownloadManager | ||
|
start(files:Array):void
Start uploading the files
| FileDownloadManager | ||
|
toString():String
The About string
| FileDownloadManager | ||
| url | property |
public var url:StringThe destination url to upload to
| FileDownloadManager | () | constructor |
public function FileDownloadManager(url:String)Create a new instance of the file upload manager
Parametersurl:String |
| onComplete | () | method |
public function onComplete(fileRef:Object):voidCallback when a file has been loaded
ParametersfileRef:Object |
| onHTTPError | () | method |
public function onHTTPError(fileRef:Object, httpError:String):voidCallback on a HTTP error
ParametersfileRef:Object |
|
httpError:String |
| onIOError | () | method |
public function onIOError(fileRef:Object):voidCallback on a file IO error
ParametersfileRef:Object |
| onProgress | () | method |
public function onProgress(fileRef:Object, bytesLoaded:Number, bytesTotal:Number):voidCallback as a file is being loaded
ParametersfileRef:Object |
|
bytesLoaded:Number |
|
bytesTotal:Number |
| onSecurityError | () | method |
public function onSecurityError(fileRef:Object, errorCode:String):voidCallback on a file security error
ParametersfileRef:Object |
|
errorCode:String |
| start | () | method |
public function start(files:Array):voidStart uploading the files
Parametersfiles:Array |
| toString | () | method |
public override function toString():StringThe About string
ReturnsString |