开发者

Is there an equivalent of C#'s Path.GetExtension in Flex?

开发者 https://www.devze.com 2022-12-27 11:20 出处:网络
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.

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消