动作项目编译为SWF。我怎样才能加载它与flex和使用它提供的功能? [英] actionscript project compiled as swf. how can i load it with flex and use the functions it provides?
问题描述
我有一个ActionScript项目,有几个类,我使用Adobe Flex编译为swf(通过创建一个actionscript项目并单击导出 - >发布构建)
有没有办法加载该瑞士法郎,所以我将能够加载它的类和使用他们在不同的瑞士法郎?
我知道我可以使用下面的代码加载一个swf文件:
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaded);
loader.load(new URLRequest(game.swf));
addChild(loader);
(from 谢谢! I have an ActionScript project with several classes that i compiled as an swf using Adobe Flex (by creating an actionscript project and clicking on export -> release build) Is there a way to load that swf so i'll be able to load it's classes and use them on a different swf ? i know i can use the following code to load an swf file:
var loader:Loader = new Loader(); (from Loading a SWF into an ActionScript 3 project (Flex Builder)) but how can i actually create an instance of the classes i have in that swf ? thanks! Have a look at this. 这篇关于动作项目编译为SWF。我怎样才能加载它与flex和使用它提供的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);
loader.load(new URLRequest("game.swf"));
addChild(loader);