Filelist (Filereferencelist.filelist Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

textTypes.extension = "*.txt; *.rtf";
allTypes.push(textTypes);
var fileRef:FileReferenceList = new FileReferenceList();
fileRef.browse(allTypes);
See also
browse (FileReference.browse method)
(flash.net.FileReference)

fileList (FileReferenceList.fileList property)

public fileList : Array
An array of FileReference objects.
When the
FileReferenceList.browse()
one or more files from the dialog box opened by
array of FileReference objects, each of which represents a file the user selected. You can then
use this array to upload the files with
a time.
The
property is populated anew each time
fileList
FileReferenceList object.
The properties of FileReference objects are described in the FileReference class
documentation.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example demonstrates the
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);
}
}
590
ActionScript classes
,
FileReference
method has been called and the user has selected
browse()
FileReference.upload()
browse()
property.
fileList
, this property is populated with an
. You must upload one file at
is called on that

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF