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  Announcements and General Discussion / Fabrication / respondTo on: February 05, 2009, 02:20:44
I just recently upgraded to .6.  This functionality doesn't seem to work for me.  I see in the documentation it says
override public function getClassByName(path:String):Class {
        return getDefinitionByName(path) as Class;     
}

must be present with getStartupCommand, but i don't see this convention used in any of the examples available.  Also, is it ok to have notifications handled by the handleNotification function and the respondTo in the same mediator ?
2  Announcements and General Discussion / Getting Started / creationComplete vs onRegister on: November 18, 2008, 05:51:28
Hi

I have a component call it homeView, and on the canvas tag I have creationComplete="sendEvent(constants.HOME_LOAD)"

In the mediator in the onRegister function I have a listener defined as
homeView.addEventListener(constants.HOME_LOAD, loadComboBox);

i can see in my trace messages that --
inside of send event homeLoad
startup command
register
--
The creation event gets fired even before the startup command and onRegister of the mediator. 

Is this expected behavior, and if so how do you do on load events ? I was able to accomplish what i needed by added a <mx:RemoteObject > tag at the bottom of the page and loading combo box that way, but I read the preferred way was to keep services in the proxy, and thats what i've been trying to do thanks.   

3  Announcements and General Discussion / Getting Started / PrepCommand + execute on: September 29, 2008, 04:39:16
In ApplicationStartupCommand, subCommands are added. 
:
addSubCommand( ModelPrepCommand );
            addSubCommand( ViewPrepCommand );

ModelPrepCommand has an execute function.  I can't seem to figure out where this execute function is called. 
This can also be found in the ViewPrepCommand. 

Looking at the addSubCommand , it just adds this class to an array. 
:
protected function addSubCommand( commandClassRef:Class ): void

{

subCommands.push(commandClassRef);

}

Where and when does execute get called ?

Thanks
Pages: [1]