Brett,

You can read about this in more detail on any website which discusses
the pattern but I will try and simplify it here for you. I highly
recommend also trying out Cairngorm (A Flex MVC framework) even if
only to better understand the concepts.

If your view is firing events, the events are being passed to the
controller which then does the work of calling a function or command
to update the model.

So for example:

User presses a Button on the View
View sends an event to the Controller
Controller decides what to do with the event it has been passed
Once decided, the controller (or associated commands( updates the model
The view listens for events on the model and then reacts to the change

For a Superb example of MVC and how it works, check out
cairngormdocs.org and look at the Cairngorm Diagram Explorer. It will
demystify most of the process for you.

-Kenny



Reply via email to