在不使用trace的情况下,如何判断flash应用程序是否在容器中?

发布于 2024-07-19 01:18:07 字数 482 浏览 4 评论 0原文

我正在尝试确定我的 Flash 内容是否在容器内。 我不知道这意味着什么,但显然这不利于进行ExternalInterface.calls。 我正在运行服务器的 Linux 机器上开发网站,并在 Windows 机器上使用 Flash。 我尝试了很多使用跟踪的选项,但没有一个有效。 有什么方法可以查看外部接口是否可用而不使用跟踪? 当前代码位于: http://pastebin.com/f5fe9a985 我就该主题发表的另一篇文章是这里: firefox、linux 中的 Flash 跟踪输出

谢谢, 丹

也是,动作脚本是 2.0,如果有帮助的话......

I'm trying to determine if my flash content is inside a container. I have no idea what this means, but apparently it's bad for making ExternalInterface.calls. I'm developing the site on a linux machine I'm running the server on and I'm working with the flash on a windows machine. I've tried many options for using trace, none of them have worked. Is there any way to see if ExternalInterface is available w/o using trace? Current code is here: http://pastebin.com/f5fe9a985 Another post I've made on the subject is here: Flash trace output in firefox, linux

Thanks,
Dan

also, the actionscript is 2.0, if that helps...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

惯饮孤独 2024-07-26 01:18:07

您确实应该花一个下午的时间来阅读有关 Flash Player 安全性和 JavaScript 内容的文档。 我认为这确实有助于您理解这一切是如何运作的。

需要对您的问题进行一些澄清:

您说您在 Linux 机器上运行服务器,但您的 swf 在 Windows 机器上? 你能解释一下这个设置吗? (它们是 Linux 还是 Windows 并不重要,重要的是它们从哪个域(或本地计算机名称)提供服务。

如果您的本地计算机是 http://localhost

并且您的 Windows 计算机是 http:// mywindowsbox/,

那么您需要通过在嵌入代码中添加allowscriptaccess=always 来允许访问嵌入 swf 的 html 页面。

You should really spend an afternoon with the docs for flash player's security and javascript stuff. I think it would really help you in understanding how this all works.

Some clarification is needed for your q:

You say you are running a server on your linux box, but your swf is on a windows machine? Can you explain that setup? (it shouldn't matter that they are linux vs. windows, only what domain they are served from (or local machine name).

If your local machine is http://localhost

and your windows machine is http:// mywindowsbox/

then you'll need to allow access to the html page that the swf is embedded on, by adding allowscriptaccess=always in your embed code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文