mApplication.onDownloadProgress()

Availability

SupportPCMacPackage (AS3) / Scope (AS2)
ActionScript 3.0

4.0.11 or later

4.0.1 or later

ActionScript 2.0

4.0.11 or later

4.0.1 or later

global

Usage

mApplication.onDownloadProgress = function (sessionID:Number, , bytesRead:Number, , bytesTotal:Number) {
   // your statements here
}

Parameters

sessionID

bytesRead

bytesTotal

Returns

Nothing.

Description

Event handler; This is an event handler to go with mApplication.downloadFile().

This AS2 event handler function is replaced by a standard event object in AS3: see mApplicationEvent.DOWNLOAD_FILE_PROGRESS

ActionScript 2.0 Example:

mApplication.onDownloadFileProgress = function (SessionID, bytesRead, totalBytes)
{
    
}

See Also

mApplication.downloadFile(), mApplication.onDownloadComplete(), mApplication.abortFunction(), mApplicationEvent.DOWNLOAD_FILE_PROGRESS, mApplicationEvent.DOWNLOAD_COMPLETE

Code Examples

DownloadImage_Flash_AS3

Code Examples

downloadImage