Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 50

Thread: Flex modules and application context loading

  1. #11

    Default hmmmm, not working for me...

    Hi Roland,

    finally some time to do some tests. As my own more complex project doesn't work, i tried the example multi module app from svn in the samples dir.

    But i cannot get that one to work either. In the project setup i defined both modules as modules for the main app and to optimize them both. i'm using the latest source for sas from svn and link that directly into the test project. here's the error (part of it):

    Code:
    :
    ....
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.Label4'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.HRule6'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.module1'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.HRule8'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.module2'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Stage processing completed
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - FlexStageProcessorRegistry was initialized
    [SWF] Users:arnoudbos:Desktop:AgileFlex2:_poc_multi_module_sas:bin-debug:modules:SASDemoModule1.swf - 90,693 bytes after decompression
    [SWF] Users:arnoudbos:Desktop:AgileFlex2:_poc_multi_module_sas:bin-debug:modules:SASDemoModule2.swf - 90,409 bytes after decompression
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading object definitions
    Sat Oct 24 23:11:21 GMT+0200 2009 INFO - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading XML object definitions from [module1-context.xml]
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading object definitions
    Sat Oct 24 23:11:21 GMT+0200 2009 INFO - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading XML object definitions from [module2-context.xml]
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - No external properties file reference found.
    Sat Oct 24 23:11:21 GMT+0200 2009 INFO - org.springextensions.actionscript.ioc.factory.support.DefaultListableObjectFactory - Pre-instantiating singletons in [object FlexXMLApplicationContext]
    Sat Oct 24 23:11:21 GMT+0200 2009 WARN - org.as3commons.reflect.Type - Type.forName error: Error #1065: Variable ModuleClass is not defined. The class 'classes.ModuleClass' is probably an internal class or it may not have been compiled.
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - New stage processor '[object DefaultAutowiringStageProcessor]' was registered with name 'defaultAutowiringStageProcessor' and existing [object FlexStageDefaultObjectSelector]
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.module1.SASDemoModule1_13'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Can't find a prototype scoped IObjectDefinition whose type match the object type for _poc_multi_module_sas0.module1.SASDemoModule1_13
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Using default IObjectDefinition for _poc_multi_module_sas0.module1.SASDemoModule1_13
    ReferenceError: Error #1065: Variable ISASModule is not defined.
    	at global/flash.utils::getDefinitionByName()
    	at org.as3commons.lang::ClassUtils$/getImplementedInterfaces()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:282]
    	at org.as3commons.reflect::Type$/forClass()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:156]
    	at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/getUnclaimedSimpleObjectProperties()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/DefaultAutowireProcessor.as:412]
    	at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/autoWire()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/DefaultAutowireProcessor.as:157]
    	at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/wire()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/support/AbstractObjectFactory.as:321]
    	at org.springextensions.actionscript.stage::DefaultAutowiringStageProcessor/process()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/DefaultAutowiringStageProcessor.as:151]
    	at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/processStageComponentWithRelevantProcessors()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/FlexStageProcessorRegistry.as:288]
    	at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/processUIComponent()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/FlexStageProcessorRegistry.as:261]
    	at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/processStage()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/FlexStageProcessorRegistry.as:439]
    	at org.springextensions.actionscript.context.support::FlexXMLApplicationContext/completeHandler()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/context/support/FlexXMLApplicationContext.as:302]
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    ....
    I'm i missing settings here or does it break at your computer too with the current version of sas?

    Also note the next warning which is suspicious, cause the class is directly created in module a so it's definately compiled in...

    Code:
    Sat Oct 24 23:11:21 GMT+0200 2009 WARN - org.as3commons.reflect.Type - Type.forName error: Error #1065: Variable ModuleClass is not defined. The class 'classes.ModuleClass' is probably an internal class or it may not have been compiled.
    cheers Arnoud
    Last edited by arnoudb; Oct 24th, 2009 at 04:31 PM.

  2. #12
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    406

    Default other problem

    Hey Arnoud,

    this looks like another problem, juding by this:

    Code:
    ReferenceError: Error #1065: Variable ISASModule is not defined
    Are you sure all classes and interfaces are being compiled in the springactionscript swc?
    Right click on the springactionscript project in eclipse, choose properties->Flex library build path and make sure all the checkboxes are selected.

    please let me know your further findings

    cheers,

    Roland

  3. #13

    Default got main working now

    Hi Roland,

    i did include all classes, but the next line was missing in the main app.

    Code:
    import org.springextensions.actionscript.module.ISASModule; ISASModule;
    cannot understand why it's working at your place then, cause in the svn this line is missing too... Im using flash builder 4 beta 2. Maybe it has something to do with that?

    Anyway nice that you put an example project together but actually you are not testing the use of a custom class in a module. Ok you define it in the context, but it's never retrieved from that context! If i Try that it fails.

    i modufied module 1 like this:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <BasicSASModule
    	xmlns="org.springextensions.actionscript.module.*"
    	xmlns:mx="http://www.adobe.com/2006/mxml" 
    	creationComplete="initModule()" 
    	layout="vertical" 
    	horizontalAlign="left" xmlns:view="view.*">
    	
    	<mx:Script>
    		<![CDATA[
    			import classes.ModuleClass;
    			import classes.ModuleClassImpl;
    			
    			[Bindable]
    			[Autowired(mode="byType")]
    			//[Autowired]
    			public var moduleClass:ModuleClass;
    			
    			private var forceInClusdeClasses:Array = [ModuleClassImpl];
    			
    			private function initModule():void {
    				
    				moduleApplicationContext.addConfigLocation("module1-context.xml");
    				moduleApplicationContext.addEventListener(Event.COMPLETE,complete_handler);
    				moduleApplicationContext.load();
    			}
    			
    			private function complete_handler(event:Event):void {
    				moduleApplicationContext.removeEventListener(Event.COMPLETE,complete_handler);
    			}
    			
    		]]>
    	</mx:Script>
    	
    	<mx:Label fontSize="20" text="MODULE #1"/>
    	<mx:Label fontSize="20" text="moduleclass: {moduleClass.title}, now: {moduleClass.now}"/>
    	<mx:HBox>
    		<view:InjectedTextLabel/>	
    	</mx:HBox>
    	
    </BasicSASModule>
    and modified custom class like this (interface and implementation):

    Code:
    package classes {
    
    	[Bindable]
    	public interface ModuleClass 
    	{
    		function get title():String;
    		function set title(value:String):void;
    		
    		function get now():Date;
    		function set now(value:Date):void;
    	}
    }

    Code:
    package classes 
    {
    	[Bindable]
    	public class ModuleClassImpl implements ModuleClass 
    	{
    		public var title:String = "ModuleClass";
    		public var now:Date = new Date();
    		
    		public function ModuleClassImpl() {
    			super();
    		}
    	}
    }
    and context for module 1 like this:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <objects
    	xsi:schemaLocation="http://www.springactionscript.org/schema/objects http://www.springactionscript.org/schema/objects/spring-actionscript-objects-1.0.xsd"
    	xmlns="http://www.springactionscript.org/schema/objects"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    
    	<object id="injectedText" class="String">
    		<constructor-arg value="This was injected by the module 1 context"/>
    	</object>
    	
    	<object id="customClass" class="classes.ModuleClassImpl"/>
    </objects>

    if i run this i get the next error:

    Code:
    ...
    Sun Oct 25 12:14:28 GMT+0100 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.module2.SASDemoModule2_13.HBox16.InjectedTextLabel17.VBox18.lblTitle2'
    Sun Oct 25 12:14:28 GMT+0100 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Stage processing completed
    Sun Oct 25 12:14:28 GMT+0100 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - No external properties file reference found.
    Sun Oct 25 12:14:28 GMT+0100 2009 INFO - org.springextensions.actionscript.ioc.factory.support.DefaultListableObjectFactory - Pre-instantiating singletons in [object FlexXMLApplicationContext]
    Sun Oct 25 12:14:28 GMT+0100 2009 WARN - org.as3commons.reflect.Type - Type.forName error: Error #1065: Variable ModuleClassImpl is not defined. The class 'classes.ModuleClassImpl' is probably an internal class or it may not have been compiled.
    ReferenceError: Error #1065: Variable ModuleClass is not defined.
    	at global/flash.utils::getDefinitionByName()
    	at org.as3commons.lang::ClassUtils$/getImplementedInterfaces()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:282]
    	at org.as3commons.reflect::Type$/forClass()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:156]
    	at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/getUnclaimedSimpleObjectProperties()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/DefaultAutowireProcessor.as:412]
    	at 
    ...
    so the module has trouble looking up the custom class in the context, but it is force included in the module as can be seen in the module 1 mxml

    You can also see that reflect cannot find ModuleClassImpl ....

    i'll experiment some more and let you know how it goes.... I have a feeling that if i include those classes in the main context everything will work...

    Arnoud

  4. #14

    Default more results....

    Hi Roland,

    I tried to add to the main app:

    Code:
    import classes.ModuleClassImpl; ModuleClassImpl;
    and add to the main app context:

    Code:
    <object id="customClass" class="classes.ModuleClassImpl"/>
    and then it works.

    Another way to make it work is not do the steps above but simply load the module into the current application domain:
    Code:
    module1.applicationDomain = ApplicationDomain.currentDomain;
    conclusion for now:
    - module context cannot find custom classes defined for that module only
    if it uses a childApplication domain of the main application domain (BUG)
    - module context does look in main context if an object cannot be found in the module context (OK)

    This clarifies that in my own project stuff only works is modules are loaded into the same applicationDomain as the hosting application. But things fail if the module is loeded into a child application domain. Apparently the IoC container cannot look up classes in childApplication domains seems to be the conclusion for now. I do think this needs some attention as adobe recommends loading modules in child domains. This is logical cause
    in that case modules cannot interfere with each other, and class collisions between modules cannot occur, otherwise the first loaded module always wins over later loaded modules in adding classes to the main application domain which can of course give unpredictable behavior.


    hope this can be fixed for the 0.9 release.

    Arnoud
    Attached Files Attached Files
    Last edited by arnoudb; Oct 25th, 2009 at 06:57 AM. Reason: attachment

  5. #15
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    406

    Default I still politely disagree with you

    Hi there,

    I'm very sorry Arnoud but the example app works flawlessly for me.
    First of all:

    Anyway nice that you put an example project together but actually you are not testing the use of a custom class in a module. Ok you define it in the context, but it's never retrieved from that context! If i Try that it fails.
    I see you feel the need to become sarcastic, that's ok, I can understand your frustration with not getting things to work the way you want them to.

    However, your assumption here is not completely correct. By declaring the custom class in the module's context it is automatically created by this context, since objects are singletons *by default*, and so are instantiated in the initialization of the module's application context. Retrieving the object simply means you are receiving the instance that was already created. Also having to add this line:
    Code:
    import org.springextensions.actionscript.module.ISASModule; ISASModule;
    this seems very strange to me since both modules in the example app derive from BasicSASModule, which is an implementation of ISASModule.

    One way or the other, my final conclusion remains that there's something going wrong with the project itself and therefore the linking of classes is screwed up. I see your using Flash Builder, does this also mean you are using the flex 4 SDK? Or do you use the 3.4 one?
    In the case that you are using the 4.0 SDK in combination with flashbuilder, may I please remind you that this is still *beta* software, so things might have errors in them causing the behavior that you're experiencing.
    I will try and get the project up and running in flashbuilder as well, to see if I can re-create your problems. I'll let you know about my findings.
    In the meanwhile, perhaps you can try to compile and run the example app in flexbuilder 3 and see if you bump into the same trouble.

    thanks you and I'll get back to you as soon as possible,

    cheers,

    Roland

  6. #16
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    406

    Default Flashbuilder is the problem

    Ok, I've tried getting the example app to work in Flashbuilder and get exactly the same errors as the ones you reported.
    I think this pretty much confirms my suspicions, its an IDE problem.
    I'll try and see if I can find time to figure out where things screw up, but again, Flashbuilder is still a beta product so I'm not going to spend too much time on this since the product is still subject to change.
    Until then I guess you're more or less stuck with flexbuilder 3, I'm sorry.
    Should you be able to find out yourself what exactly goes wrong in Flashbuilder then I'd really like to hear about it.

    cheers,

    Roland

  7. #17

    Default I'll give it another go....

    Hi Roland,

    If i sounded sarcastic i am sorry about that, but it was not my intention at all. I'm really happy that you guys are so responsive! Just thought getting that out of the way first.

    First of all I am using flex 3.4.

    I am really curious if you can make the example work. The need for adding ISASModule is indeed strange but not because of the reason you say i think. Cause in my opinion SASModule is not used in Main so it's obvious that ISASModule is not linked in. What is strange imho is that Main needs ISASModule anyway.

    But the point still open is: Can you proof that you can actually reference / autowire a custom class that is defined in a module context and that is not available in the application context. I have a hard time believing that you can get my example to wok in flex builder 3. Because without sarcasm , i still believe the multi module example doesn't proof that.

    cheers,

    Arnoud

  8. #18

    Default flex builder 3 same problems, no ide issue ...

    Hi Roland,

    As i suspected i have the same problem in flex builder 3 (with sdk 3.3).

    So main needs to include ISASModule (and i'm just using the source of SAS, no swc, so no missing classes due to unchecked checkboxes). otherwise this error:

    Code:
    Sun Oct 25 14:56:19 GMT+0100 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Can't find a prototype scoped IObjectDefinition whose type match the object type for _poc_multi_module_sas0.module2.SASDemoModule2_13
    Sun Oct 25 14:56:19 GMT+0100 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Using default IObjectDefinition for _poc_multi_module_sas0.module2.SASDemoModule2_13
    ReferenceError: Error #1065: Variable ISASModule is not defined.
    	at global/flash.utils::getDefinitionByName()
    	at org.as3commons.lang::ClassUtils$/getImplementedInterfaces()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:282]
    	at org.as3commons.reflect::Type$/forClass()[/home/christophe/IdeaProjects/

    and if i include it i get the next familiar one. even though module 1 has the
    definition of the class: inside module 1 (and they are not referenced in main):

    Code:
    import classes.ModuleClass;
    import classes.ModuleClassImpl;
    private var forceInCludeClasses:Array = [ModuleClassImpl];
    the error:

    Code:
    Sun Oct 25 15:00:57 GMT+0100 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - No external properties file reference found.
    Sun Oct 25 15:00:57 GMT+0100 2009 INFO - org.springextensions.actionscript.ioc.factory.support.DefaultListableObjectFactory - Pre-instantiating singletons in [object FlexXMLApplicationContext]
    Sun Oct 25 15:00:57 GMT+0100 2009 WARN - org.as3commons.reflect.Type - Type.forName error: Error #1065: Variable ModuleClassImpl is not defined. The class 'classes.ModuleClassImpl' is probably an internal class or it may not have been compiled.
    ReferenceError: Error #1065: Variable ModuleClass is not defined.
    	at global/flash.utils::getDefinitionByName()
    	at org.as3commons.lang::ClassUtils$/getImplementedInterfaces()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:282]
    	at org.as3commons.reflect::Type$/forClass()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:156]
    	at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/getUnclaimedSimpleObjectProperties()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/DefaultAutowireProcessor.as:412]
    	at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/autoWire()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/DefaultAutowireProcessor.as:157]
    	at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/wire()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/support/AbstractObjectFactory.as:321]
    	at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/getObject()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/support/AbstractObjectFactory.as:289]

    that error disappears if i load the module in the same application domain as main instead of a child domain or if i include

    Code:
    <object id="customClass" class="classes.ModuleClassImpl"/>
    in main application context.

    and
    Code:
    import classes.ModuleClassImpl; ModuleClassImpl;
    in main.

    This all still leads to my conclusion that
    custom classes in a module context break if modules are loaded in child application domains.

    When looking up classes in the modulecontext to for example autowire a view property, the module context is skipped and only the main context is inspected. Hope this helps out.

    cheers,

    Arnoud
    Last edited by arnoudb; Oct 25th, 2009 at 09:28 AM. Reason: typo

  9. #19
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    406

    Default its a flashbuilder issue

    Hey Arnoud,

    as I've stated in my previous post, its not an SDK issue, its an IDE issue. I've tried getting the example application to work in Flashbuilder with SDK 4.0 and with SDK 3.4, both give the errors that you posted.

    Yet, when I build my application with FlexBuilder 3 it works. That's why I mentioned the fact that flashbuilder is a beta product, I don't know WHY its screwing up, bit its definitely the fault of Flashbuilder.
    Have you tried building the example in Flexbuilder 3? I mean the IDE, not the SDK. Sorry for the confusion.

    cheers,

    Roland

  10. #20

    Default haha

    Yeah, we have some confusion. :-)

    but as statet in the message title and in the first line of my previous message i did try the example in flex builder 3 with sdk 3.3

    so here the same problems in flash builder and flex builder, don't know what's up. That was why my conclusion was that it's the framework....

    strange shit. I'll test some more.

    in the mean time to be absolutely sure we talk about the same stuff here.
    dit you try my example in flex builder 3 or your example?

    if you used mine try changing something in main:
    So change the applicationdomain for module1. Change:

    Code:
    private function loadModules():void {
    				module1.applicationDomain = ApplicationDomain.currentDomain;
    				module2.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
    				
    				module1.loadModule("modules/SASDemoModule1.swf");
    				module2.loadModule("modules/SASDemoModule2.swf");
    			}
    into

    Code:
    private function loadModules():void {
    				module1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
    				module2.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
    				
    				module1.loadModule("modules/SASDemoModule1.swf");
    				module2.loadModule("modules/SASDemoModule2.swf");
    			}
    if that works for you i'll eat my shoe :-D

    Arnoud

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •