6 Replies Latest reply on Apr 14, 2010 11:40 AM by saisri2k2

    Load modules using moduleLoader url property?

    saisri2k2 Level 4

      My requirement is to load a module using URL like following

       

      '/somthing.swf?a=b&b=c'

       

      so that it can load the module and set a few values after it is loaded. But when i create an instance of the moduleLoader and set the Url property nothing is happening. My code is as follows

       

       

                              url += constructUrl()+"?"; // something like 'modules/vst/visitModule.swf' will be returned
                     
                     if(_modLoader){
                          _modLoader.addEventListener(ModuleEvent.READY,readyMod);
                          _modLoader.addEventListener(ModuleEvent.ERROR,loadError);
                          _modLoader.addEventListener(ModuleEvent.PROGRESS,loadProgress);
                          _modLoader.addEventListener(ModuleEvent.UNLOAD,unload);
                          _modLoader.applicationDomain = ApplicationDomain.currentDomain;                    
                          _modLoader.url = url;
                               }
      

       

       

      Do you see something wrong here? I'm using Flex 3.2.

       

      I've read in the following forum for the solution http://forum.springsource.org/archive/index.php/t-65228.html but could not get it to work. Still trying.

       

      Thanks