Description
Property (read-only); a Date object containing the time the file was last modified.
File.length
Availability
Flash Media Server 2.
Usage
fileObject.length
Description
Property (read-only). For a directory, the number of files in the directory, not counting the
current directory and parent directory entries; for a file, the number of bytes in the file.
File.list()
Availability
Flash Media Server 2.
Usage
fileObject.list(filter)
Parameters
A Function object that determines the files in the returned array.
filter
If the function returns
when a file's name is passed to it as a parameter, the file is added
true
to the array returned by
. This parameter is optional and allows you to filter the
File.list()
results of the call.
Returns
An Array object containing all the file objects in the directory.
Description
Method; if the file is a directory, returns an array with an element for each file in the directory.
Example
The following example returns files in the current directory that have three-character names:
var a = x.currentDir.list(function(name){return name.length==3;});
74
Server-Side ActionScript Language Reference
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?