Main Page | Packages | Class Tree | Index | Help

xp.util

class FileUploadManager

Object
  |
  +--xp.system.DispatcherObject
        |
        +--xp.util.FileUploadManager


class FileUploadManager
extends DispatcherObject

File upload manager

Manages uploading files to the server


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
fileTypes: Array
The file types filter for the select files dialog

public
maxFileSize: Number
The maximum file size to be uploaded

public
url: String
The destination url to upload to*

Fields inherited from class xp.system.DispatcherObject

parent

Constructor

public
FileUploadManager ( url: String)
Create a new instance of the file upload manager *

Method Summary

public
browse ( ): Void
browse for files to upload *

public
clear ( ): Void
Clear file in the list *

public
getFile ( index: Number ): flash.net.FileReference
returns the file ref object at the specified index*

public
onComplete ( fileRef: Object ): Void
Callback when a file has been loaded*

public
onHTTPError ( fileRef: Object, httpError: String )
Callback on a HTTP error*

public
onIOError ( fileRef: Object ): Void
Callback on a file IO error*

public
onProgress ( fileRef: Object, bytesLoaded: Number, bytesTotal: Number ): Void
Callback as a file is being loaded*

public
onSecurityError ( fileRef: Object, errorCode: String ): Void
Callback on a file security error*

public
onSelect ( refList: Object ): Void
Callback from the reflist when file(s) have been selected

public
start ( files: Array ): Void
Start uploading the files*

public
toString ( ): String
The About string*

public
upload ( ): Void
Upload file in the list *

Methods inherited from class xp.system.DispatcherObject

addEventListener, removeEventListener, routeEvent



Field Documentation

fileTypes

public var fileTypes: Array
The file types filter for the select files dialog

maxFileSize

public var maxFileSize: Number
The maximum file size to be uploaded

url

public var url: String
The destination url to upload to*


Constructor Documentation

FileUploadManager

public function FileUploadManager(url: String)
Create a new instance of the file upload manager *


Method Documentation

browse

public function browse(): Void
browse for files to upload *

clear

public function clear(): Void
Clear file in the list *

getFile

public function getFile(index: Number): flash.net.FileReference
returns the file ref object at the specified index*

onComplete

public function onComplete(fileRef: Object): Void
Callback when a file has been loaded*

onHTTPError

public function onHTTPError(fileRef: Object,
 httpError: String)
Callback on a HTTP error*

onIOError

public function onIOError(fileRef: Object): Void
Callback on a file IO error*

onProgress

public function onProgress(fileRef: Object,
 bytesLoaded: Number,
 bytesTotal: Number): Void
Callback as a file is being loaded*

onSecurityError

public function onSecurityError(fileRef: Object,
 errorCode: String): Void
Callback on a file security error*

onSelect

public function onSelect(refList: Object): Void
Callback from the reflist when file(s) have been selected

start

public function start(files: Array): Void
Start uploading the files*

toString

public function toString(): String
The About string*

upload

public function upload(): Void
Upload file in the list *


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc