如何从闪存加载柔性瑞士法郎? [英] How to load flex swf from flash?
本文介绍了如何从闪存加载柔性瑞士法郎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些SWF在柔性编译我希望将其加载到我的电影剪辑闪光灯亲。
I have some swf compiled in flex I want to load it into my movie clip in flash pro.
...那么如何,例如加载柔性SWF在Flash CS4?
...So how to for example load flex swf inside Flash CS4?
如何做这样的事情?
推荐答案
在这里你可以阅读更多关于它: <一href="http://troygilbert.com/2009/05/loading-flex-based-swfs-in-as3-only-swfs/">http://troygilbert.com/2009/05/loading-flex-based-swfs-in-as3-only-swfs/
Here you can read more about it: http://troygilbert.com/2009/05/loading-flex-based-swfs-in-as3-only-swfs/
下面是code加载柔性SWF:
Here is the code for loading the flex swf:
var loader:Loader = new Loader();
addChild(loader);
loader.load(new URLRequest("my-flex-app.swf"));
loader.addEventListener("mx.managers.SystemManager.isBootstrapRoot", systemManagerHandler);
loader.addEventListener("mx.managers.SystemManager.isStageRoot", systemManagerHandler);
function systemManagerHandler(event:Event):void { event.preventDefault(); }
这篇关于如何从闪存加载柔性瑞士法郎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文