Flash AS3 电影动画(和事件)嵌入到 PowerPoint 2007 中时冻结

发布于 2024-12-29 09:22:26 字数 1380 浏览 2 评论 0原文

我正在为学校开发一款产品,其中包括 Flash 动画(用 AS3 编写的 swf 文件),用于插入/嵌入到 PowerPoint 幻灯片中。除了一个问题之外,这一切都在工作:当插入/嵌入到 PowerPoint 2007 幻灯片中时,当您离开并返回包含它们的 PowerPoint 幻灯片时,我的 Flash 影片(有时)会冻结。 PowerPoint 2010 似乎不会出现此问题,但我的大多数客户都使用 PP2007,因此这没有多大帮助。我需要帮助找到针对 Flash Player 和/或 PowerPoint 中明显错误的解决方法。

通过实验,我发现当您显示包含 Flash 影片的 PP2007 幻灯片时,转到下一张幻灯片,然后返回(有时)与时间相关的事件(ENTER_FRAMETIMER< /code> 等)已停止由 Flash Player 分派至 AS3 代码,从而冻结动画。其他事件(例如 MOUSE_MOVEKEY_DOWN 等)以随机突发方式分派到 AS3。

我创建了一个小型 Flash 程序和 PowerPoint 幻灯片来演示该问题,并将它们放在网上:

www.eye2eyesoft01.co.uk/FlashInPowerPointProb/ExampleInclusionTestFlash.pptx(要尝试的 PowerPoint 幻灯片)和 www.eye2eyesoft01.co.uk/FlashInPowerPointProb/EventShowTest.fla(来源PowerPoint 中的 Flash 电影)

我正在寻找的是一种解决方法 - 当用户单击按钮时我可以运行一些 AS3 代码(如上面的“实验”按钮) demo),在电影重新出现在 PowerPoint 中并卡住后重新启动正常的事件调度。以前有人解决过这个问题吗?

显示问题的版本:W7-64 位上的 Flash Player 11.1.102.55(最新于 2012 年 1 月 24 日)和 PowerPoint 2007,但在另一台 W7-64 位 PC 上的 Flash Player 10.0.22.87 和 PowerPoint 2010 上显示没有问题。 AS3用Flash Pro CS5.5编译。显示问题的代码很小(请参阅 fla 源文件) - 问题显然是 Flash Player 和 PowerPoint 之间的交互 ​​- 因此使用 Flash Builder 不太可能产生任何影响。

I am developing a product for schools including flash animations - swf files written in AS3 - for insert/embed into PowerPoint slideshows. It is all working apart from one problem: when inserted/embedded in PowerPoint 2007 slideshows my flash movies freeze (sometimes) when you leave and return to a PowerPoint slide containing them. The problem doesn't appear to show with PowerPoint 2010, but most of my customers have PP2007, so that doesn't help much. I need help finding a work-round for what is obviously a bug in Flash Player and/or PowerPoint.

By experimenting I have found that when you show a PP2007 slide containing a flash movie, move on to the next slide and then return, (sometimes) the time-related Events (ENTER_FRAME, TIMER etc) have stopped being dispatched to AS3 code by Flash Player, freezing animations. Other Events such as MOUSE_MOVE, KEY_DOWN etc are dispatched to AS3 in random bursts.

I have created a small flash program and PowerPoint slideshow to demonstrate the problem and put them on the web at:

www.eye2eyesoft01.co.uk/FlashInPowerPointProb/ExampleIncludingTestFlash.pptx (the PowerPoint slideshow to try) and
www.eye2eyesoft01.co.uk/FlashInPowerPointProb/EventShowTest.fla (the source of the Flash Movie in the PowerPoint)

What I am looking for is a work-round - some AS3 code I can run when a user clicks a button (like the 'Experiment' button in my above demo) that re-starts normal Event dispatching after the Movie has reappeared in PowerPoint and jammed. Has anyone solved this problem before?

Versions showing the problem: Flash Player 11.1.102.55 (latest on 24/1/12) and PowerPoint 2007 on W7-64bit, but no problem showing on flash player 10.0.22.87 and PowerPoint 2010 on another W7-64 bit PC. AS3 compiled with Flash Pro CS5.5. The code showing the problem is tiny (see the fla source file) - the problem is obviously interaction between Flash Player and PowerPoint - so using Flash Builder instead is highly unlikely to make any difference.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文