Hi Royale!

I've been trying to get mx:ModuleLoader to work for the past couple days.
I've compiled the module separately and set the -module-output compiler flag
but what seems to be happening is either

a.)in UIModuleUtils in the loadDepsHandler it will forever be stuck because
window[this.moduleName] is always null

or

b.) it's added correctly to window but, in base.js goog.isInModuleLoader_()
doesn't seem to know it's a module so it returns false and never tries to
instantiate.

or

c.) it tries to instantiate but window[this.moduleName] is just the skeleton
of an object and nothing is in there.

These different behaviors came from various tweaking of the first and last
line of {fileName}__deps.js, and the goog.provide() in {fileName}.js 


Since I got ModuleLoader to reliably add the correct object to window I'm
now using

    var o :Object = window["pathFolder"]["pathFolder"]["fileName"]; 

to get the object and instantiate. I'm wondering how to know when
ModuleLoader has added the property to window. or what I'm possibly doing
wrong with ModuleLoader?

Thanks for your help!



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

Reply via email to