mApplication.onDownloadComplete()

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.onDownloadComplete = function (sessionID:Number, , success:Boolean) {
   // your statements here
}

Parameters

sessionID

success

Returns

Nothing.

Description

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

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

ActionScript 2.0 Example:

This example shows how you can receive an event when your downloadFile() call completes, enabling you to load the downloaded file into your application (here, the downloaded file is assumed to be a JPG).

mApplication.onDownloadComplete = function (SessionID, success)
{
    if (success)
       loadJPG();  
}

See Also

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

Code Examples

DownloadImage_Flash_AS3

Code Examples

downloadImage