flex4:使用swfloader加载flex4 swf仅显示加载栏

发布于 2024-08-16 03:12:39 字数 282 浏览 1 评论 0原文

我尝试使用以下代码行在我的 Flex 4 项目中加载 swf:

<mx:SWFLoader id="game_swf"  source="demo.swf" complete="init()" />

demo.swf 文件是我使用 Flex 4 创建的另一个项目。问题是,当我运行应用程序时,我只看到演示的加载栏.swf flash 文件,仅此而已。

如果我尝试加载不同的 swf 文件(例如我下载的游戏),它加载得很好。

我缺少什么?

I try to load an swf in my flex 4 project using the following line of code:

<mx:SWFLoader id="game_swf"  source="demo.swf" complete="init()" />

the demo.swf file is another project i created using flex 4. the problem is that when i run the application i see only the loading bar of the demo.swf flash file and nothing else.

if i try to load a different swf file (for a example a game i downloaded), it loads just fine.

what am i missing?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哭泣的笑容 2024-08-23 03:12:39

仅当我使用 swf 的调试版本、创建发布版本并使用它而不是它工作时,才会发生这种情况。

this happens only when i use the debug version of the swf, when i created a release build and used it instead it worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文