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
Activates or deactivates the search panel, resetting things to their default values if necessary.
this.Activate = function( isActive, ignoreDeactivateDelay )
Number of bytes that have been uploaded.
private var bytesUploaded: Number
Removes the event listeners.
private function cleanupFile( file: FileReference ):void
Closes the results window.
this.CloseResultsWindow = function()
Used to determine if files are currently in the process of being removed.
private var currentlyRemovingFiles: Boolean
File that is currently being uploaded.
private var currentUpload: compu.UploadFile
The length of deactivateTimeout in thousandths of a second.
this.deactivateTimeoutLength
this.DOMPopupSearchResults = function()
this.DOMPopupSearchResultsWindow = function()
this.DOMSearchField = function()
this.DOMSearchPanel = function()
this.DOMSearchType = function()
Adds event listeners to the local file, formats the variables to be passed to the upload, and initiates the file upload.
private function doUpload( data: compu.UploadFile ):void
Used to determine if the event has been handled in the event that multiple events will be thrown from one error.
private var eventHandled: Boolean
Fades in the main panel and its children.
private function fadeInPanels():void
Returns the reference to the file on the local file system.
public function get file():FileReference
Filters files user is able to select for upload, comprised of fileLabel and fileExtensions query string parameters.
private var fileFilter: FileFilter
public var filesTooLargeMessageText: String
public var filesTooLargeTitleText: String
An ArrayCollection of files that are queueud to be removed.
private var filesToRemove: ArrayCollection
Handle faults in the event of HTTP Service failure.
private function handleHTTPFault( error: FaultEvent ):void
Handles a click on the header of the file list.
private function headRelEvt( event: DataGridEvent ):void
Called by inactivateTimeout, which is set by Activate().
this.InactivateAfterTimeout = function()
Called on initialize and on data change to update the data display of the item.
private function init():void
The timeout used between a keystroke and when a search is performed.
this.keyTimeout
The length of keyTimeout in thousandths of a second.
this.keyTimeoutLength
The number of matches from the last run of Search().
this.lastMatchCount
The last results page.
this.lastResultsPage
The last search string executed, or an empty string if none.
this.lastSearchValue
The mode the search is going to work in, such as “HTML” or “FramedHTML”.
this.mode
The mode the search is going to work in, such as “HTML” or “FramedHTML”.
this.mode
The name of the global variable that will be storing this instance of the class.
this.name
Returns the file name.
public function get name():String
Number of uploads in this session.
private var numUploads: Number
Called when the content of the search field is changed.
this.OnSearchFieldChange = function()
Called when focus is added or removed from the search field.
this.OnSearchFieldFocus = function( isActive )
Called when the search type is changed.
this.OnSearchTypeChange = function()
Called when focus is added or removed from the search type.
this.OnSearchTypeFocus = function( isActive )
Reads in and sets the query string parameters.
private function preInit():void
Triggers a cleanup on the current file, and initiates the upload of the next file.
private function progressToNextFile( file: FileReference ):void
Queue containing the files to upload.
private var queue: ArrayCollection
Handles the result of the file removal operation.
private function removeFileHandler( event: ResultEvent ):void
Sends the removal request.
private function removeFiles():void
Requests a token from the server to assist in identifying the upload since session information isn’t communicated on file upload.
private function requestToken() : void
Handles the return of the HTTPService request for the token, setting the token variable.
private function requestTokenHandler() : void
The relative path from the current HTML page to the results page directory.
this.resultsPath
Performs a search.
this.Search = function()
Searches for the passed string.
this.Search = function( search )
Returns the size of the file in bytes.
public function get size():Number
Returns the status of the transfer.
public function get status():String
Loads the flash css style if it is available.
private function styleInit():void
When the style is added, makes the panel visible.
private function styleUpdatedHandler( event: StyleEvent ):void