I think there might be issues loading the same module url several times. It might be better to come up with a scheme that doesn't do that.
Depending on creationPolicy, moduleLoaders will not load modules until they are about to become visible. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jamison_wilde Sent: Saturday, March 29, 2008 9:44 PM To: [email protected] Subject: [flexcoders] ModuleLoader erratically loading modules I'm having a lot of issues with ModuleLoader only occasionally loading my modules. At first I thought maybe it was that I couldn't have the module open in more than one tab at a time in my browser, as this seemed to help a little. But it seems more like there is a basic problem with loading multiple modules at once. Basically in my main mxml I have: <mx:Canvas id="views_canvas" x="10"> <views:PrizesStub id="prizes" visible="false" /> <views:Home id="home" visible="false"/> <views:ListStub id="list" visible="false" /> <views:SubmissionStub id="submission" visible="false" /> </mx:Canvas> where the stubs are stub components for the modules, so they can hold data that might be needed before the module is loaded. One of my stubs looks like: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> "> <mx:ModuleLoader id="module" url="views/SubmissionModule.swf" /> </mx:Canvas> That's pretty much it. The SubmissionModule will only load once every 4 or 5 times I debug. I've tried adding unique identifiers to the url like: <mx:ModuleLoader id="module" url="{'views/SubmissionModule.swf?uid=' + new Date().getTime()}" /> but that doesn't seem to help. The ready event never fires when it doesn't work. The only thing I can think of is that it is loading all of the Modules at once(once the main swf has loaded) even though the views that contain them aren;t visible. Is there some reason that shouldn't happen or would cause a problems?

