Flash 不与我的应用程序内的浏览器中的 JavaScript 交互

发布于 2024-07-13 21:35:38 字数 341 浏览 7 评论 0原文

我有一个嵌入基于 xulrunner 的浏览器的应用程序。

我必须在其中加载一些 Flash 内容,这些内容与一些 javascript 进行更新 浏览器标题。

从 Firefox 启动时 Flash 内容工作正常,但在我的应用程序中却不行。 我尝试了一个示例 html 文件,其中包含一些 javascript,并且它们工作正常。 当我在服务器上有 Flash 内容时它甚至可以工作。 只有当我尝试通过本地计算机上的 Flash 运行 js 时,我才会看到此问题。

我想这一定与 xulrunner 中的一些安全设置有关。 有人可以帮我找出问题所在吗?

I have an application which embeds a xulrunner based browser.

I have to load some flash content in it which talks to some javascript to update
the browser title.

The flash content works fine when launched from Firefox but not inside my app. I tried a sample html file which has some javascript and they work fine. It even works when I have the flash content on a server. It is only when I try to run js through flash present on my local machine that I see this problem.

I guess it must have something to do with some security settings in xulrunner.
Could somebody help me figure out what the problem might be?

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

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

发布评论

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

评论(2

断舍离 2024-07-20 21:35:38

查看这个答案,它可能会解决您的问题。

Check out this answer, it might the solution of your problems.

天赋异禀 2024-07-20 21:35:38

您还可以从应用程序本身更改浏览器标题...

import mx.managers.IBrowserManager;
import mx.managers.BrowserManager;

private var bm:IBrowserManager = BrowserManager.getInstance();
bm.init("", "New Browser Title");

You can also change the browser title from within the application itself...

import mx.managers.IBrowserManager;
import mx.managers.BrowserManager;

private var bm:IBrowserManager = BrowserManager.getInstance();
bm.init("", "New Browser Title");
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文