开发者

Is it possible to open a file from a network path in actionscript?

I need to open media files fro开发者_运维知识库m a network path like this "\\drive\folder\file", is it possible, if yes how? else is there any other alternative?

Thanks


As long as the path is not a path belonging to the user's computer or their network you shouldn't have a problem. If the path is on the server or a drive networked to the server, then passing it directly as a path to flash isn't going to work because the path is within the server domain and the flash instance is operating within the users domain. You can always convert local paths to relative paths in a server side script or, grab the binary contents of the file and serve then up to flash through a service (if the original target file is not directly accessible to the end-user via a network request).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜