开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜