I haven't worked with modules directly. It looks like you'll want to get
modules using the manager but then add listeners to the returned
IModuleInfo handles to wait for them to actually load and be properly
inited before attempting to use them. You could probably chain your
calls to getModule() in order to serialize their loading based on
listening for 'ready' events, or get all of them but use a guard
conditions to stall any dependent processing until you've heard back
that they're ready. Maybe others who work with modules day to day can
offer more guidance.

Best,
Seth 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ezderman
Sent: Saturday, February 09, 2008 6:33 AM
To: [email protected]
Subject: [flexcoders] Re: issues with multiple module and HTTPService



Thanks Seth, It looks like the problem is loading them concurrently.
When I am loading them with Timer class 2 secs apart it behave fine.
The way I am loading my module is by loading the module instance once
with the ModuleManager and then getting its factory like that:
moduleEvent.module.factory.create() and going thru a for loop to
create the rest. how can I know when module is completely loading and
ready to load the next one. Is there any event that I can listen to
when the module completely loads??
Thanks

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Seth Hodgson" <[EMAIL PROTECTED]> wrote:
>
> Have you defined a useProxy attribute for your HTTPService: E.g.
> <mx:HTTPService useProxy="true" ... /> ?
> 
> By default, this attribute is false. It sounds like you're not using a
> proxy and just making direct requests to your jhtml page from the
> player. I see one bug in the bugbase related to HTTPService and
modules
> which was closed as user error (a class loading issue). Have you tried
> loading your modules one at a time to confirm they behave correctly on
> their own? If that works, but loading and using them concurrently is
> failing, please log a bug here along with a simple test case if
> possible: https://bugs.adobe.com/flex/ <https://bugs.adobe.com/flex/> 
> 
> Thanks,
> Seth
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of ezderman
> Sent: Friday, February 08, 2008 7:07 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: issues with multiple module and HTTPService
> 
> 
> 
> sorry but what do you mwan by proxied httpservice. It is jhtml page
> that produce xml. can you reffer me to a link that address this issue?
> 
> Thanks
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> , "Seth Hodgson" <shodgson@> wrote:
> >
> > Are these proxied or non-proxied HTTPServices?
> > 
> > If proxied, you need to use a shared set of destinations and
channels
> > defined in your root swf currently.
> > 
> > Best,
> > Seth 
> > 
> > ________________________________
> > 
> > From: [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> [mailto:[email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of ezderman
> > Sent: Friday, February 08, 2008 2:44 PM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] issues with multiple module and HTTPService
> > 
> > 
> > 
> > Hi,
> > 
> > I am loading the same 5 modules in my app. Each module is using 
> > HTTPService to get an xml file. Each module is waiting on
ResultEvent 
> > however only the first module get the result event. Actually the
first
> 
> > module get 5 ResultEvent from all the other module.
> > 
> > anyone came accross this issue?
> > 
> > Thanks
> > -mo
> >
>



 

Reply via email to