在所有html文件中嵌入常见的Flash SWF对象 [英] Embed common flash SWF object in all html files

查看:70
本文介绍了在所有html文件中嵌入常见的Flash SWF对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI:我的网站的主页面(Index.html)中嵌入了一个Flash SWF对象,该主页有另外5个页面,可以从主页面链接到这些页面。这有一个动画序列,到最后有一个短的无限循环序列。

我希望在所有其他html页面中使用相同的SWF对象,但我不希望iit从ebeginning重放,即我希望它处于相同的状态(无限循环)从我们离开index.html的地方,无需从头开始重新加载或重播。

我们怎样才能做到?在此先感谢。

HI: I have a flash SWF object embedded in the Main Page (Index.html) of my website that has 5 other pages that one can link to from the Main Page. This has an animation sequence that has a short endless loop sequence towards the end.

I would like the same SWF object to be in all the other html pages but I do not want iit to replay from th ebeginning, i.e. I would like it to be at the same state (endless loop) from where we leave index.html without having to reload or replay from the beginning.

How can we do the above? Thanks in advance.

推荐答案

你不能。

您可以通过停留在第一页并使用AJAX模拟移动到其他页面(即更新将在页面之间更改的内容)或使用iframe用于相同的视觉效果来模拟它影响。但是我不记得一个可以传递给玩家的参数来设置swf的起点(一个可能存在,但如果是这样我就不记得了),此外,你必须要有一种方法来确定上一页中的swf正在播放的点,以便能够设置这样的参数(如果存在)。即使它可以以某种方式完成,我也非常怀疑你能在页面之间实现无缝计时。

播放器在浏览器的过程中进行播放,我知道无法完成嵌入式swf的目标。

欢呼,斯科特
You can't.

You can simulate it by staying in the first page and using AJAX to simulate moving to the other pages (i.e. updating the content that would be changing from page to page) or by using iframes for the same visual effect. But I don't recall a parameter that can be passed to the player to set the start point of the swf (one may exist, but if so I do not remember it), and besides, you would have to have a way of determining the point at which the swf in the previous page was playing to be able to set such a parameter if it existed. Even if it could somehow be accomplished, I seriously doubt that you could ever achieve seamless timing from page to page.

The player plays in the context of the browser's process, and I know of no way to accomplish your goal with an embedded swf.

cheers,
scott


这篇关于在所有html文件中嵌入常见的Flash SWF对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆