您好,
这是关于 Flash 安全/沙箱问题。我想知道是否有办法让加载的 Flash .swf 对象知道是否为它设置了 allowNetworking="internal"
,可能使用 ActionScript(2.0 或 3.0)。
我找到了解决方案,但是它不区分限制是来自 allowNetworking
还是 allowScriptAccess
设置。
我并不是特别寻找解决方法(尽管这也很有趣),但只是为了能够检测是否专门将allowNetworking
设置为“内部"
或至少是 "all"
以外的内容。
干杯:)
Greetings,
This is regarding a Flash security/sandbox issue. I was wondering if there was a way for the loaded Flash .swf object to know whether allowNetworking="internal"
is set for it, possibly using ActionScript (2.0 or 3.0).
I found a solution, but it does not differentiate whether the restrictions are from allowNetworking
or allowScriptAccess
settings.
I am not particularly looking for a work around (although that would be interesting too), but just to be able to detect whether specifically allowNetworking
is set to "internal"
or at least something other than "all"
.
Cheers :)
发布评论
评论(1)
您可以通过尝试执行特定的受限 API 并查看是否引发 SecurityError 来测试网络 API 限制。
可以找到受限网络 API 的列表 此处
You can test for the networking API restrictions by trying to execute specific restricted APIs and seeing if a SecurityError is thrown.
A list of the restricted networking APIs can be found here