class FileListEvent
package openfl.events
extends Event
Available on AIR, Android, HashLink, Linux, Neko, Windows, iOS, macOS
A File object dispatches a FileListEvent object when a call to the
getDirectoryListingAsync()
method of a File object successfully enumerates
a set of files and directories or when a user selects files after a call to
the browseForOpenMultiple()
method.
See also:
Static variables
staticinlineread onlyDIRECTORY_LISTING:EventType<FileListEvent> = "directoryListing"
The FileListEvent.DIRECTORY_LISTING
constant defines the value of the
type
property of the event object for a directoryListing
event.
staticinlineread onlySELECT_MULTIPLE:EventType<FileListEvent> = "selectMultiple"
The FileListEvent.SELECT_MULTIPLE
constant defines the value of the
type
property of the event object for a selectMultiple
event.
Constructor
Variables
files:Array<File>
An array of File objects representing the files and directories found or selected.
For the File.getDirectoryListingAsync()
method, this is the list of
files and directories found at the root level of the directory
represented by the File object that called the method. For the
File.browseForOpenMultiple()
method, this is the list of files
selected by the user.