If I declare a moduleloader object in mxml it works.
<mx:ModuleLoader url="modules/workalert_mod.swf"
id="AllStaffLoader" width="100%" height="292"
x="0" y="475" x.workAlert="1" y.workAlert="478"/>
But I want to dynamically load a module, so I try to do this using
modulemanager.
private var WorkAlert:Class;
protected function application_initializeHandler():void
{
module = ModuleManager.getModule("modules/workalert_mod.swf");
/* the event never dispatch, Why ? */
/* I can't do angthing, because there is no error at runtime at all */
module.addEventListener(ModuleEvent.READY, moduleReadyHandler);
module.load();
}
在2009-06-29,"claudiu ursica" <[email protected]> 写道:
There is this document issued by adobe where they explain with examples how to
handles modules ...
http://blogs.adobe.com/flexdoc/pdfs/modular.pdf
TH,
C
From: j2me_soul <[email protected]>
To: flexcoders <[email protected]>
Sent: Monday, June 29, 2009 1:53:37 PM
Subject: [flexcoders] How to use modulemanger to load modules
How to load a module ?
200万种商品,最低价格,疯狂诱惑你