Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Why I can not load Module in Multicore pureMVC?  (Read 8025 times)
marks416
Sr. Member
****
Posts: 52


View Profile Email
« on: February 28, 2009, 09:14:16 »

Hi,

I want to load module at runtime from Shell , but I can not load the module.(the module also build with multicore pureMVC).I do not know why. I am sure it works in normal Flex without pureMVC framework.

private function loadModule( event: MouseEvent ): void
{
      moduleLoader = new ModuleLoader;            
      moduleLoader.url = "SimpleModule.swf";
      moduleLoader.loadModule();
      moduleBox.addChild(moduleLoader);         
      moduleLoader.addEventListener( ModuleEvent.READY, moduleReadyHandler);
         
}

Please help me.Thanks

Mark
« Last Edit: February 28, 2009, 10:13:33 by marks416 » Logged
marks416
Sr. Member
****
Posts: 52


View Profile Email
« Reply #1 on: February 28, 2009, 10:12:42 »

This is the error message when I load a module in the shell:

VerifyError: Error #1014: Class IWatcherSetupUtil could not be found.

   at flash.display::MovieClip/nextFrame()
   at mx.core::FlexModuleFactory/deferredNextFrame()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:467]
   at mx.core::FlexModuleFactory/update()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:295]
   at mx.core::FlexModuleFactory/moduleCompleteHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:542]


if that possible to load multicore module at runtime?How to do that?Thanks

Mark
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 on: March 01, 2009, 08:33:40 »

Sorry I'm on a blackberry at the moment and can't post any code, but I can assure you there is no problem loading and using MultiCore modules. You might take a look at the module loading facility in Fabrication, which is built on top of MultiCore.

-=Cliff>
Logged
Pages: [1]
Print