FileReference (


public class FileReference
extends Object

The FileReference class provides a means to upload and download files between a user’s computer and a server. An operating-system dialog box prompts the user to select a file to upload or a location for download. Each FileReference object refers to a single file on the user’s hard disk and has properties that contain information about the file’s size, type, name, creation date, modification date, and creator type (Macintosh only).

FileReference instances are created in two ways:

  • When you use the new operator with the FileReference constructor: var myFileReference = new FileReference();

  • When you call FileReferenceList.browse()

Get ActionScript 2.0 Language Reference for Macromedia® Flash® 8 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.