Is there an equivalent of C#'s Path.GetExtension in Flex?
I w开发者_Python百科ant to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this.
Is there an equivalent in Flex, or do I have to write my own?
Are you using a Flex app running in AIR? If yes, you can:
var file:File = new File("c:\\myfile.bat");
trace(file.extension);
精彩评论