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 / Re: creationComplete vs onRegister on: November 20, 2008, 04:18:54
Hey Cliff

thanks thats very helpful.  I appreciate it.  Anyways the solution I am using is the startup manager , found here http://blog.log2e.com/2008/05/19/getting-started-with-the-puremvc-startup-manager-introduction/ for intro. thanks
3  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.   

4  Announcements and General Discussion / Getting Started / Re: PrepCommand + execute on: September 29, 2008, 11:52:29
 ;D yes.. thanks for the clarification. 

:
view.registerObserver( notificationName, new Observer( executeCommand, this ) );
5  Announcements and General Discussion / Getting Started / Re: PrepCommand + execute on: September 29, 2008, 06:29:35
Hi Cliff

Thanks  actually now I understand, when register Command is called parameters are string, and command class
:
public function registerCommand( notificationName:String, commandClassRef:Class ):void
{
controller.registerCommand( notificationName, commandClassRef );
}

so when I call
:
registerCommand( STARTUP, ApplicationStartupCommand ); in the ApplicationFacade.as and then calls controller.registerCommand, and in this function executeCommand is called, which calls execute when the notification is triggered.

easy enough  ;D  just wanted to clarify, thanks for the help and patience.  Love the framework so far. 
6  Announcements and General Discussion / Getting Started / Re: PrepCommand + execute on: September 29, 2008, 02:18:16
Hi Cliff

sorry if I'm not being clear, but when is the execute on the MacroCommand class being executed. 
:
public final function execute( notification:INotification ) : void
{
while ( subCommands.length > 0) {
var commandClassRef : Class = subCommands.shift();
var commandInstance : ICommand = new commandClassRef();
commandInstance.execute( notification );
}
}

I see that the MacroCommand.execute .. loops through and executes the execute function of each of each Command Object that extends SimpleCommand.  So when is the execute function of the MacroCommand called ? 

Thanks
7  Announcements and General Discussion / Getting Started / Re: PrepCommand + execute on: September 29, 2008, 10:45:43
Hi Cliff
thanks for the reply. 

I have looked at this class, I was assuming in the ApplicationStartupCommand or in the constructor of MacroCommand there would need to be an explicit call, to execute, and I can't find this anywhere. 
:
public function MacroCommand()
{
subCommands = new Array();
initializeMacroCommand();
}
In the overridden InitializeMacroCommand
:
        override protected function initializeMacroCommand() :void
        {
            addSubCommand( ModelPrepCommand );
            addSubCommand( ViewPrepCommand );
        }

I see the function that iterates through the subCommands, and so I was assuming that somewhere there would be needed this.execute or execute("startup") from some other class.
The only reference I could find is in the Controller.as that has
:
commandInstance.execute( note ); 


8  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
9  Announcements and General Discussion / Fabrication / Re: Fabrication Undo (Part 1) - Simple undo demo on: September 26, 2008, 12:43:44
i don't know if this is the right place to post, but is there any where i can get the swc binary for the Fabrication utility.  do i build it myself ?
Pages: [1]