Its a simple addition calculator that adds two text field together when you click "do sum"
And it looks like this so far
facade(kind of like old skool frame1, some stuff happening here)
model: (yet to make)
view:StageMediator
controller:StartUpCommand and DoSum
That's all so far. I have my view elements created in StageMediator at the moment and not really separated into views though I'm using composite classes for text fields and simple buttons.
Flow of the application
I have Main.as as a document level class which is getting the facade going by passing in a refference to the stage...
The facade upon startup launches StartUpCommand
StartUpCommand :Then registers and creates the StageMediator and builds the view elements into itself.
StageMediator:Actions - handlers exist in this Mediator (viewish thing) and I could even do the application logic here- was before I moved it into DoSum (a command) .
My question is with regular MVC I should perform the calculation in the model, so I guess I create one (or do i create a proxy instead) and do the calculation there. And then update the result in the view.
Bigger question - what is the correct way in pseudo code to do the communication.
In the view I have the two values in the text fields that I place into and object and I send that object to my doSum command with sendNotification(LandedFacade.DO_SUM,obj);
In the execute method of DoSum I get the values as obj... or does the frame work allow me to pass this object straight to the model (I thought the facade allows me to do this). This is what im still unclear about. But currently im trying to send it to the DoSum controller then that sends it to the model for actually doing the sum

I would love to get help on understanding this last paragraph in the context of this very simple application. Thanks