0

我有几个 Flash 游戏,当我在我的 firefox 浏览器中加载它们时,它们可以正常加载,但是当我使用 flex 4(flash builder)通过 swfloader 加载它们时,它们加载到 100% 并且不显示开始菜单。

任何想法如何解决这个问题?

4

1 回答 1

0

加载的闪存和包含加载闪存的页面的网站不在同一个应用程序域上,除了修复它。

我添加了参数SWFLoader.loadForCompatibility=true

 /**
 *  A flag that indicates whether the content is loaded so that it can
 *  interoperate with applications built with a different verion of the Flex compiler.  
 *  Compatibility with other Flex applications is accomplished by loading
 *  the application into a sibling (or peer) ApplicationDomain.
 *  This flag is ignored if the content must be loaded into a different
 *  SecurityDomain.
 *  If <code>true</code>, the content loads into a sibling ApplicationDomain. 
 *  If <code>false</code>, the content loaded into a child ApplicationDomain */
于 2010-04-29T15:17:57.417 回答