| removeFileScript.as | |
| Variables | |
| currentlyRemovingFiles | Used to determine if files are currently in the process of being removed. |
| filesToRemove | An ArrayCollection of files that are queueud to be removed. |
| Functions | |
| removeFiles | Sends the removal request. |
| removeFileHandler | Handles the result of the file removal operation. |
| handleHTTPFault | Handle faults in the event of HTTP Service failure. |
private var currentlyRemovingFiles: Boolean
Used to determine if files are currently in the process of being removed.
private var filesToRemove: ArrayCollection
An ArrayCollection of files that are queueud to be removed.
private function removeFiles():void
Sends the removal request. The parameters for the removal request contains an array, file[].
private function removeFileHandler( event: ResultEvent ):void
Handles the result of the file removal operation. If there isn’t an error, remove the files from the uploaded files array. If there is an error, display the error message. In either case, remove the busy cursor. The error message is formatted as follows: <errors><error><title>Error Title!</title><message>Error Message</message></error></errors>. IF AN ERROR MESSAGE IS RETURNED, IT IS ASSUMED THAT NO FILES WERE REMOVED. In other words, the server side file removal process should be transactional.
| event | Result Event from the http request. |
Used to determine if files are currently in the process of being removed.
private var currentlyRemovingFiles: Boolean
An ArrayCollection of files that are queueud to be removed.
private var filesToRemove: ArrayCollection
Sends the removal request.
private function removeFiles():void
Handles the result of the file removal operation.
private function removeFileHandler( event: ResultEvent ):void
Handle faults in the event of HTTP Service failure.
private function handleHTTPFault( error: FaultEvent ):void