Description
String. Sets or returns the name of a specified file or folder.
Syntax
file.name
Example
f = new File("c:\\demo\\1.txt"); trace(f.name); //output: 1.txt