如果不使用跟踪,如何判断Flash应用程序是否在容器中?

时间:2021-02-06 01:44:18

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

我正在尝试确定我的Flash内容是否在容器内。我不知道这意味着什么,但显然它对于创建ExternalInterface.calls是不好的。我正在linux机器上开发这个网站我正在运行服务器,我正在使用Windows机器上的闪存。我已经尝试了许多使用跟踪的选项,但没有一个有效。有没有办法看看ExternalInterface是否可用而不使用跟踪?目前的代码在这里:http://pastebin.com/f5fe9a985我在这个主题上发表的另一篇文章是:firefox,linux中的Flash跟踪输出

Thanks, Dan

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

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

1 个解决方案

#1


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.

你真的应该花一个下午的文件来获取flash播放器的安全性和javascript内容。我认为它真的会帮助你理解这一切是如何运作的。

Some clarification is needed for your q:

你的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).

你说你在Linux机器上运行服务器,但你的swf是在Windows机器上?你能解释一下这个设置吗? (它们应该是Linux与Windows,只有它们所服务的域(或本地机器名称)。

If your local machine is http://localhost

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

and your windows machine is http:// mywindowsbox/

你的Windows机器是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.

然后你需要允许访问swf嵌入的html页面,方法是在你的嵌入代码中加上allowscriptaccess = always。

#1


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.

你真的应该花一个下午的文件来获取flash播放器的安全性和javascript内容。我认为它真的会帮助你理解这一切是如何运作的。

Some clarification is needed for your q:

你的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).

你说你在Linux机器上运行服务器,但你的swf是在Windows机器上?你能解释一下这个设置吗? (它们应该是Linux与Windows,只有它们所服务的域(或本地机器名称)。

If your local machine is http://localhost

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

and your windows machine is http:// mywindowsbox/

你的Windows机器是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.

然后你需要允许访问swf嵌入的html页面,方法是在你的嵌入代码中加上allowscriptaccess = always。