| UploadFile.as | |
| UploadFile | This class manages the files that have been uploaded. |
| Variables | |
| _fileReference | File reference to the file to be uploaded. |
| _name | Name of the file |
| _size | Size of the file in bytes. |
| _status | Status of the file upload. |
| Constants | |
| Upload Status | Various upload status settings. |
| Functions | |
| UploadFile | Initializes the object. |
| Properties | |
| status | Returns the status of the transfer. |
| status | Sets the transfer status and dispatches a property change event. |
| name | Returns the file name. |
| file | Returns the reference to the file on the local file system. |
| size | Returns the size of the file in bytes. |
This class manages the files that have been uploaded. Extends the ObjectProxy class because it throws property change events.
| Variables | |
| _fileReference | File reference to the file to be uploaded. |
| _name | Name of the file |
| _size | Size of the file in bytes. |
| _status | Status of the file upload. |
| Constants | |
| Upload Status | Various upload status settings. |
| Functions | |
| UploadFile | Initializes the object. |
| Properties | |
| status | Returns the status of the transfer. |
| status | Sets the transfer status and dispatches a property change event. |
| name | Returns the file name. |
| file | Returns the reference to the file on the local file system. |
| size | Returns the size of the file in bytes. |
public function UploadFile( name: String, size: Number, status: String, file: FileReference = null )
Initializes the object.
| name | Name of the file |
| size | Size of the file in bytes |
| status | Status of the upload, must use provided constants, values are subject to change. |
| file | File reference if the file exists on the local filesystem. |
public function set status( value: String ):void
Sets the transfer status and dispatches a property change event.
File reference to the file to be uploaded.
private var _fileReference: FileReference
Name of the file
private var _name: String
Size of the file in bytes.
private var _size: Number
Status of the file upload.
private var _status: String
Initializes the object.
public function UploadFile( name: String, size: Number, status: String, file: FileReference = null )
Returns the status of the transfer.
public function get status():String
Returns the file name.
public function get name():String
Returns the reference to the file on the local file system.
public function get file():FileReference
Returns the size of the file in bytes.
public function get size():Number