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

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / MultiCore Version / Re: Help!ApplicationFacade getInstance return null. on: August 07, 2009, 11:46:59
I fixed it.

But I have a new problem , right now.

When I load a module again , I click a button in it ,
The button can't dispatchEvent to mediator.

The question is only the first time module load will call onRegister method.
what should I do to call onRegister method each time I load module?


2  PureMVC Manifold / MultiCore Version / Re: Help!ApplicationFacade getInstance return null. on: August 07, 2009, 08:03:19
My loader is nested in a tabnavigator .

When I add a tab , I new a loader as a child of the tab . The tab is closed,loader will be unloaded .
3  PureMVC Manifold / MultiCore Version / Help!ApplicationFacade getInstance return null. on: August 07, 2009, 03:23:32
first i load a module , then i unload it ,
when i load it again , module's ApplicationFacade return a null instance.

i trace it in code, find that instanceMap[ key ] is not null,but cast it return null.

who can help me?

:
        public static function getInstance( key:String ) : ApplicationFacade
        {
        trace(key);
        trace("instanceMap[ key ]:");
        trace(( instanceMap[ key ] == null )?"nothing":instanceMap[ key ]);
       
            if ( instanceMap[ key ] == null ) instanceMap[ key ]  = new ApplicationFacade( key );
        trace("instanceMap[ key ]:");
        trace(( instanceMap[ key ] == null )?"nothing":instanceMap[ key ]);
        trace(instanceMap[ key ] as ApplicationFacade);
            return instanceMap[ key ] as ApplicationFacade;
        }

:
               
 moduleLoader.applicationDomain = ApplicationDomain.currentDomain;
Pages: [1]