views:

39

answers:

1

is there any way to change file mode to hidden by flex?

for example var myFile:File = new File(File.applicationDirectory.nativePath + File.seperator + "a.txt"); myFile.setHidden

+1  A: 

I'll suppose you mean Adobe Air, since the File class is not available in Flex.

Still, no, you can't change file attributes. You can access them (isHidden, for example) but unfortunatelly they're read-only. Here's the reference for the File class.

leolobato