hi all,
I've taken one of the MVC examples from the Actionscript 3.0 Design Patterns book, "Weather Maps" and made it into a pureMVC app but want to know if I'm on the right track with it (I'm using Flash CS3). it works fine, but - on top of having someone take a look at the source and checking to see if it looks right - I have some questions about setting things up:
1. do I need to register all commands in the concrete facade?
2. do I need to register all proxies and views in the StartupCommand (all apps will need some kind of StartupCommand, right?)
3. does every input / change in the view need to be connected to a command, and is it one command per view?
4. will all notification name constants be placed in the ApplicationFacde class? it seems that there will be "pairs" of constants too. for example: KEYPRESS and KEYUPDATE (I need to send a notification with the name KEYPRESS to a command, and then listen to the notification KEYUPDATE in a view). is that correct? looks like you can end up with a lot of constants that way..
the source can be found here:
www.ryac.ca/source.zipthanks a lot for your time!
regards,
Ryan