Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 633 Bytes

File metadata and controls

30 lines (18 loc) · 633 Bytes

fl.fileExists()

Availability

Flash MX 2004.

Usage

fl.fileExists(fileURI)

Parameters

fileURI A string, expressed as a file:/// URI, that contains the path to the file.

Returns

A Boolean value: true if the file exists on disk; false otherwise.

Description

Method; checks whether a file already exists on disk.

Example

The 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(""));