开发者

How to load flex swf from flash?

开发者 https://www.devze.com 2022-12-21 08:11 出处:网络
I have some 开发者_C百科swf compiled in flex I want to load it into my movie clip in flash pro.

I have some 开发者_C百科swf compiled in flex I want to load it into my movie clip in flash pro.

...So how to for example load flex swf inside Flash CS4?

how to do such thing?


Here you can read more about it: http://troygilbert.com/2009/05/loading-flex-based-swfs-in-as3-only-swfs/

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(); }
0

精彩评论

暂无评论...
验证码 换一张
取 消