Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > FileReference (flash.net.FileReference) > onComplete (FileReference.onComplete event listener) | |||
onComplete = function(fileRef:FileReference) {}
Invoked when the upload or download operation has successfully completed. Successful completion means that the entire file has been uploaded or downloaded.
Availability: ActionScript 1.0; Flash Player 8
fileRef:flash.net.FileReference - The FileReference object that initiated the operation.
The following example traces out a message when the onComplete event is triggered.
import flash.net.FileReference;
var listener:Object = new Object();
listener.onComplete = function(file:FileReference):Void {
trace("onComplete: " + file.name);
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String = "http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";
fileRef.download(url, "FlashPlatform.pdf");
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002215.html
Comments
abuchkin said on Sep 18, 2005 at 11:26 PM : gingerman said on Sep 26, 2005 at 12:20 PM : shimi2 said on Sep 26, 2005 at 5:23 PM : DiegoCBA said on Sep 29, 2005 at 12:18 PM : abuchkin said on Sep 29, 2005 at 1:48 PM : NateNielsen said on Oct 1, 2005 at 4:00 PM :