Okay, this is part one of an (intended) 3 part posting. This first example shows a very simple vision of an MVC implementation with Actionscript, with flash and flex 3. The only pattern implemented here is Singleton, used to dispatch events. I was inspired on Eric Feminella’s example, which you can check out here: http://www.ericfeminella.com/blog/2006/10/08/as3-model-view-controller-implementation/
The 2nd part will have also an Observer, just as the super elegant implementation we saw on Moock’s ES2 (best AS book ever, in my modest opinion).
The 3rd part will have Commands also.
Download the flash files here.
See the flex app here (view source enabled).
/******************************************/
Certo, essa é a primeira parte de um post que deve 3 três partes. O primeiro exemplo mostra uma visào muito simples de uma implementação MVC, com falsh e flex. O único padrão implementado é Singleton, usado para disparar eventos. Eu me inspirei no exemplo do Eric Feminella, que pode ser visto aqui: http://www.ericfeminella.com/blog/2006/10/08/as3-model-view-controller-implementation/
A segunda parte também vai ter um Observer, como a implementação super elegante do livro ES2 do Moock (o melhor livro de AS de todos os tempos, na minha modesta opinião).
A terceira parte também vai ter um Command




Recent Comments