Warning: the code example above is slightly misleading. If you forget to put a leading slash into your path, the code above that sets the nativePath field will crash with error 2004, because a root relative path always starts with a forward slash (on the macintosh). On Windows you would put in a path like "C:\my\folder\path\filename.txt"
In general, you are much safer using the resolvePath function, which creates a platform independent path structure, using forward slash as the delimiter for subfolders. Even if you want a root relative path, you can use the resolvePath function. In this code below you can see that we have made a path relative to the applicationDirectory (which is a special meta-folder name in AIR), but if subpath had a beginning slash, the path would be root relative.
var f:File = File.applicationDirectory.resolvePath(subpath);
if (f.exists)
return T;
else
return F;