Jump to content
Search Community

fuli7

Members
  • Posts

    2
  • Joined

  • Last visited

fuli7's Achievements

0

Reputation

  1. I work with flex project,use flex modules.the code like follows: private function init():void { var info:IModuleInfo = ModuleManager.getModule("something.swf"); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(); } private function modEventHandler(e:ModuleEvent):void { addChild(e.module.factory.create() as DisplayObject); } but now,I want to use loaderMax with this project,and the problem is how can I load the modules swf file into the flex framework with loaderMax. I try like follows: private function init():void { var loader:SWFLoader = new SWFLoader("something.swf", {onComplete:onLoadSWF}); loader.load(); } private function onLoadSWF(event:LoaderEvent):void { var mc:MovieClip = loader.content; addChild(mc); } as I expected,it's not success. this object on loaded by flex ModuleManager must be a interface of IModuleInfo,and i can't get the IModuleInfo by loaderMax. so,i search for the forums want to find the answer. I see the page http://forums.greensock.com/viewtopic.php?f=6&t=4258&p=17080&hilit=flex#p17080,and i cry . so i want to loaderMax supported to flex module,please.it's very very useful.and if it support,it's more perfect,very very thanks. (I am from China,sorry for my bad English )
×
×
  • Create New...