FileExists()


Syntax

FileExists( Filename )

Return:

A number indicating the state of the file:

Value

Meaning

0

the file does not exist

1

the file exists

2

the file exists but is read-only

Parameters:

Filename – the full pathname of the file to test for. This parameter is required.

Note:
Pathnames normally contain backslashes e.g. d:\welcome.txt, all single backslashes should be entered as double backslashes i.e. d:\\welcome.txt.

Remarks:

This function will test if a specified file exists at the given location.

This function will only work in the full player - not the screensaver, web plug-in or Flex.

image\Script_Button.jpgExamples