Hi All,

I am facing a Flex 3 SWFloading problem 

The situation is:

We have Application 1 (built on cairngorm) which loads Application 2
(again built on cairngorm) using the loader, urlrequest mechanism or
SWFLoader.
Application 2 itself loads 5 other modules using ModuleLoader.
Application 2 and the modules share the cairngorm resources like
Servicelocator and ModuleLocator etc. The ModelLocator are kept in a
SWC file, a shared library for Application 2

The problem is:

At runtime, when Application 1 loads Application 2, the ModelLocator
is initialized. When the Module 1 loads inside Application 2, it is
not able to find the correct reference to the ModelLocator and instead
gets a new instance of ModelLocator. If I directly access Application
2, the initialized instance of ModelLocator is found by the Modules
and the whole application runs smoothly. When I try to embed the
Application 2 inside Application 1, then the reference gets lost. Is
there a way or setting to get this right?

Notes:
The ModelLocator gets its instance in standard static way
The build properties of the library, Application 2 has the “Generate
accessible SWF file” property clicked, other than that no other extra
properties are set.
The attached error file has more tech details on the error
Running thru debug mode, the reference seems to get lost around the
ModuleLoader.as file.

Please let me know if you need any additional info for suggesting some
pointers to this problem.

Reply via email to