How to download flex swf from a flash drive?

I have swf compiled in flex. I want to upload it to my clip in flash pro.

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

how to do it?

+3
source share
1 answer

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

Here is the code to download 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(); }
+5
source

Source: https://habr.com/ru/post/1734843/


All Articles