[flexcoders] Re: Generated code not working when app is loaded as module

2009-08-21 Thread poweribo
Fixed it by providing ApplicationDomain.currentDomain on load() ... info = ModuleManager.getModule(moduleURL); if (info != null) { info.addEventListener(ModuleEvent.READY, onReady); info.addEventListener(ModuleEvent.ERROR, onError);

RE: [flexcoders] Re: Generated code not working when app is loaded as module

2009-08-21 Thread Alex Harui
Be aware that doing that prevents the module from ever unloading. You might want a separate module of your data classes and load those that way and the rest of the code using default parameters Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog:

[flexcoders] Re: Generated code not working when app is loaded as module

2009-08-18 Thread poweribo
anyone with idea? --- In flexcoders@yahoogroups.com, poweribo power...@... wrote: I used Flexbuilder to generated the proxy code for my webservices and my app works perfectly as standalone swf file but when I load it as a module (loaded from another main swf file), it throws these kind of

RE: [flexcoders] Re: Generated code not working when app is loaded as module

2009-08-18 Thread Alex Harui
Usually all webservice data classes need to be in the main applicationdomain. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of poweribo Sent: Tuesday,