Flash:当电影没有焦点时,它会停止 AS 的执行(也许还渲染?)

发布于 2024-10-19 09:43:40 字数 122 浏览 0 评论 0原文

我有两个 Flash 电影,位于用户浏览器的不同选项卡上。

他们使用 LocalConnection 相互通信,但选项卡上未激活的选项卡不会执行任何操作,直到您切换回该选项卡,您可以更改此设置吗?也许在嵌入标签中?

I have two flash movies, on different tabs of a user's browser.

They use LocalConnection to talk to each other, but the one on the tab which isn't active doesn't do anything until you switch back to that tab, can you change this? Maybe in the embed tag?

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

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

发布评论

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

评论(1

尹雨沫 2024-10-26 09:43:40

Adobe 在 10.1 之后对 Flash 播放器进行的更改之一是,为了使其消耗更少的 CPU 周期,当 swf 不再处于焦点时,强制播放器仅以 2fps(或其他低得离谱的速度)执行(或者即使它仍然“处于焦点”,但由于位于滚动到屏幕外的浏览器窗口的一部分而没有呈现到屏幕上,

我不知道新的 Flash 播放器固有的任何内容会阻止 LocalConnection 工作。不过,您是否设置了侦听器以在尝试进行任何调用之前检测相关 swf 是否处于活动状态?

One of the things that Adobe changed about the Flash player after 10.1, in order to make it consume less CPU cycles was to force the player to only execute at 2fps (or some other ridiculously low amount) when the swf is no longer in focus (or even if it's still "in focus" but not being rendered to the screen by virtue of being in a section of the browser window that's scrolled offscreen.

I'm not aware of anything inherent to the new Flash player that would prevent LocalConnection from working, though. Do you have listeners set up to detect whether the swfs in question are active or not before they attempt to make any calls?

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