简体   繁体   English

Flex应用程序作为html 5应用程序中的选项卡

[英]Flex app as tab in a html 5 application

I need to have a flex application as one of the tabs in html 5 application. 我需要将flex应用程序作为html 5应用程序中的选项卡之一。 But the problem is when i move across different tabs (one being the html and other being flash ) inside the html application the flash reloads. 但是问题是当我在html应用程序内的Flash重新加载时,在不同的选项卡之间移动时(一个是html,另一个是flash)。

The question: Is there a way , we can stop flash from reloading and can maintain the state inside the flash. 问题:有没有办法,我们可以阻止Flash重新加载并保持Flash内部状态。

Thanks 谢谢

The problem is that when you switch tabs, your swf is removed / added to the DOM which causes the swf to reload. 问题是,当您切换选项卡时,您的swf会被删除/添加到DOM中,从而导致swf重新加载。 You have to find a way to make the swf invisible but remain in the DOM when you switch tabs. 您必须找到一种方法来使swf不可见,但在切换选项卡时仍保留在DOM中。 Make sure you do not move it inside the dom, (take it out and insert is somewhere else) that will also trigger a reload. 确保不要将其移动到dom内(将其取出并插入其他地方),这也会触发重新加载。

I had a similar problem once and managed to solve it: Moving a Flash object within the DOM tree 我曾经遇到过类似的问题,并设法解决了这一问题: 在DOM树中移动Flash对象

(At least I think this is your problem since you haven't provided any code :-) ) (至少我认为这是您的问题,因为您没有提供任何代码:-))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM