安全沙箱中的AS3 [英] Security Sandbox in AS3

查看:250
本文介绍了安全沙箱中的AS3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是安全沙箱冲突,以及如何改写呢?我在做一个项目的FlashDevelop,而今天,它不会加载外部文件,尽管它已经previously。它提供了以下的输出:

What is a security sandbox violation, and how do I override it? I'm making a project in FlashDevelop, and today, it will not load external files, even though it had been previously. It gives the following output:

********* 安全沙箱冲突 ***** 连接到   文件:/// C | /Documents%20and%20Settings/Kevin.PC885314341208/Desktop/Import%20.txt/StockData/1.txt   暂停 - 从不允许   文件:/// C | /Documents%20and%20Settings/Kevin.PC885314341208/Desktop/Import%20.txt/import.swf

********* Security Sandbox Violation ***** Connection to file:///C|/Documents%20and%20Settings/Kevin.PC885314341208/Desktop/Import%20.txt/StockData/1.txt halted - not permitted from file:///C|/Documents%20and%20Settings/Kevin.PC885314341208/Desktop/Import%20.txt/import.swf

我希望这不是一个严重的问题。

I hope this isn't a serious problem.

感谢您的帮助。

推荐答案

您发布表明,你想从一个本地SWF加载本地文件的错误消息。这个错误可以固定您的方案。

The error message you posted shows that you're trying to load a local file from a local swf. This error can be fixed for your scenario.

在FlashDevelop中,设置使用网络服务,以假(项目属性 - >编译器选项卡)。这将prevent您的SWF访问互联网,但可以让你载入本地文件。它设置为true将使互联网接入,但不能访问本地文件。

In FlashDevelop, set "Use Network Services" to false (Project Properties -> Compiler Options tab). This will prevent your swf from accessing the internet but will let you load local files. Setting it to true will allow internet access but not access to local files.

在Flash中,设置为发布设置,闪光标签下。这就是所谓的本地回放安全性和设置只访问本地文件或只访问网络。这是相同的设置,在FlashDevelop中,只是一个不同的名称。

In Flash, the setting is under "Publish Settings", Flash tab. It's called "Local playback security" and the settings are "Access local files only" or "Access network only". It's the same setting as in FlashDevelop, just a different name.

您还可以切换SWF文件的使用网络标志之后发布/使用Adobe的免费+开放的本地内容更新

You can also switch the "Use Network" flag of a swf file after publish/compile by using the Adobe's free+open Local Content Updater.

这篇关于安全沙箱中的AS3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆