从一个单独的文件服务器加载的SWF加载、文件服务器、SWF

2023-09-09 21:32:07 作者:记忆中你是我的光

我目前不知道是否有可能加载坐在另一台文件服务器上的SWF。即我现在有一个自定义的播放栏的SWF是嵌入在网站上(该公司的防火墙后面),然后加载SWF内容(目前在网站服务器上的同一个文件夹)。 我的问题是远程站点之间的带宽是有限的,流从网站服务器SWF内容是不是一种选择,但我们确实有一个DFS设置,推动所有的SWF内容输出到本地文件服务器。

I am currently wondering if it is possible to load a swf that is sitting on another file server. I.e. I currently have a custom play bar swf which is embedded on a website (behind the company's firewall) which then loads swf content (currently in the same folder on the website server). The problem I have is bandwidth between remote sites is limited and streaming the swf content from the website server is not an option, however we do have a DFS set up to push all the swf content out to local file servers.

我一直使用的文件的尝试://路径然而,如果你创建一个Windows放映文件,因为它似乎试图通过HTTP访问其中的文件服务器没有设置在嵌入到一个网站它不工作而工作对于。

I have tried using a file:// path which works if you create a windows projector file however it doesn't work when embedded onto a website as it seems to try to access via http which the file servers are not set up for.

那么,有可能得到的播放栏的swf加载SWF内容坐着一个远程文件服务器上?

So is it possible to get the play bar swf to load the swf content sat on a remote file server?

推荐答案

Flash不会在服务器上运行。它运行在浏览器中。

时,实际上是被由用户浏览器以供闪光发文件的任何请求。这就是为什么文件:// URL不能正常工作

Any request for files made by the flash is actually being made by the user's browser. That's why file:// URLs don't work.

如果你想要把你的文件一个单独的服务器,它仍然将不得不从Web(或Intranet)访问时,它仍然会被下载到用户的浏览器。

If you want to put your file on a seperate server it's still going to have to be accessible from the web (or intranet), and it's still going to be downloaded to the user's browser.

如果您的用户不能直接访问额外的swf文件,然后都不会对您的Flash应用程序。

如果在浏览器可以访问服务器的文件系统,这将是一个巨大的安全漏洞运行,因为恶意用户可以鼓捣你的Flash应用程序和访问服务器的文件系统中,他们希望的任何方式Flash应用程序。

If a flash application running in a browser could access the server's filesystem that would be a huge security hole, because a malicious user could tinker with your flash application and access the server's filesystem in any way they wanted.

 
精彩推荐
图片推荐