Which version of Flex?  Are you keeping a hard reference to the module?
Otherwise, a GC can kick it out just as it finishes loading.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Barry Evans
Sent: Monday, December 10, 2007 9:50 AM
To: [email protected]
Subject: [flexcoders] Re: ModuleLoader 'SWF is not a loadable module'
Error

 

No, this is not the case im afraid.

Sometimes the module loads perfectly and the application is fine, but 
sometimes the application throws the error i mentioned in the first 
post.

I catch the main error being thrown by the module loader ('SWF is not 
a loadable module'), but when this occurs the ModuleManager.as class 
(from the Flex framework) always throws an error at line 669:

The code at this line is:
moduleEvent.bytesLoaded = loader.contentLoaderInfo.bytesLoaded;

I have changed the code in ModuleManager.as to now point to the 
correct object - the event.currentTarget.loader property - (so that a 
null pointer error is not thrown):
moduleEvent.bytesLoaded = 
event.currentTarget.loader.contentLoaderInfo.bytesLoaded;

I am not sure how to compile the application (or perhaps rebuild the 
framework.swc file with the new source code) with the changes

Either way, the module is not loading properly in a consistent 
manner, and i am totally confused as to how this would be happening.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> is it possible it isn;t a module
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Barry Evans
> Sent: Monday, December 10, 2007 3:51 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] ModuleLoader 'SWF is not a loadable module' 
Error
> 
> 
> 
> I am having a problem with a modularised application i am 
developing.
> 
> I am using modules to load a user-customised application and i am 
> getting intermittent errors when loading a certain module (SWF is 
not 
> a loadable module).
> 
> Having scoured the internet for details of the error, i can only 
find 
> answers where the problem is to do with security issues (loading 
> modules from different domains/crossdomain.xml etc.).
> 
> I am loading all my modules from a relative path 
> (/modules/navigation/Linksmodule.swf) so security should not be an 
> issue.
> 
> I would really appreciate some help with this anyone might have as 
i 
> am reaching a release date for the project and i cannot get by 
> without solving this problem.
> 
> Thanks in advance.
> 
> Barry
>

 

Reply via email to