flex4:swfloader没有正确加载游戏

时间:2010-04-29 14:55:14

标签: flex flex4 swfloader

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

如何解决问题?

1 个答案:

答案 0 :(得分:0)

加载的Flash和包含加载的Flash页面的网站,除了修复它之外,不在同一个应用程序域中。

我添加了参数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 */