MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 645

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

You can also add download functionality to your Flash application. The
FileReference.download()
save a file from a server. This method also initiates downloading from a remote URL. When
using the
download()
the
event is dispatched. The rest of the properties are not accessible until the
onSelect
event is dispatched.
onComplete
When a dialog box appears on the end-user's computer, the default location that
appears in the dialog box is the most recently browsed folder (if that location can be
determined) or the desktop (if the recent folder cannot be determined). The
FileReference and FileReferenceList APIs do not let you set the default file location
For information on the functionality and security of the FileReference API, see
FileReference API functionality and security" on page
that uses the FileReference API, see
on page
646. You can find the sample source file for this example, FileUpload.fla, in the
Samples folder on your hard disk.
In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript\FileUpload.
On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/FileUpload.
For information on each method, property, and event of the FileReference API, see
FileReference (flash.net.FileReference)
(flash.net.FileReferenceList)
method prompts end users for a location on their hard disks to
method, only the
FileReference.name
"Adding file upload functionality to an application"
in the ActionScript 2.0 Language Reference.
property is accessible when
646. For an example of an application
and
FileReferenceList
About file uploading and downloading
"About
645

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents