Filereferencelist (Flash.net.filereferencelist) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

FileReferenceList
(flash.net.FileReferenceList)
Object
|
+-flash.net.FileReferenceList
public class FileReferenceList
extends Object
The FileReferenceList class provides a means to let users select one or more files for uploading.
A FileReferenceList object represents a group of one or more local files on the user's disk as an
array of FileReference objects. For detailed information and important considerations about
FileReference objects and the FileReference class, which you use with FileReferenceList, see
the FileReference class.
To work with the FileReferenceList class:
Instantiate the class:
Call
FileReferenceList.browse()
one or more files to upload:
After
is successfully called, the
browse()
object is populated with an array of FileReference objects.
Call
FileReference.upload()
The FileReferenceList class includes a
working with multiple files.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example allows a user to select multiple files and then uploads each of them to
a server.
import flash.net.FileReferenceList;
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(fileRefList:FileReferenceList) {
trace("onSelect");
var list:Array = fileRefList.fileList;
var item:FileReference;
for(var i:Number = 0; i < list.length; i++) {
item = list[i];
trace("name: " + item.name);
584
ActionScript classes
var myFileRef = new FileReferenceList();
, to display a dialog box in which the user can select
myFileRef.browse();
fileList
on each element in the
browse()
property of the FileReferenceList
fileList
method and a
fileList
array.
property for

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF