|
|
fl.fileExists()
AvailabilityFlash
MX 2004.
Usagefl.fileExists(fileURI)
Parameters- fileURI
- A string, expressed as a file:/// URI, that contains the
path to the file.
ReturnsA Boolean
value: true if the file exists on disk; false otherwise.
DescriptionMethod;
checks whether a file already exists on disk.
ExampleThe
following example displays true or false in
the Output panel for each specified file, depending on whether the
file exists.
alert(fl.fileExists("file:///C|/example.fla"));
alert(fl.fileExists("file:///C|/example.jsfl"));
alert(fl.fileExists(""));
|