Hi Marcelo, If you do not type the viewRef to a specific form, you can reuse a Command. But it should only be calling public methods (in essence, it *is* acting like a callback so I can't chastise Jesse's use of callbacks although we are bastardizing the Command pattern as Peter pointed out.)
Use the ModelLocator to store your data objects. Take a look at the Arp sample app in SVN for an example. Aral Marcelo de Moraes Serpa wrote: > Hi Aral! > > Thank you very much for helping! I will look into that. > > For the ModelLocator issue, Maybe I will use the classic viewRef > approach and regarding this, I´ve got one question: > - How could I implement a command in such a way that it could be used > by more than one form? I´ve saw some examples of commands and they > typecast viewref to the class of the form using that... should I use > some control structure to handle that? > > Or maybe I will try your ModelLocator (found at ARP repository).. I > just want to store the ValueObjects somewhere and so I´m able to > decouple the commands from the views (so it could be easily reused by > many views without headaches) ... could you point me to any example of > this? > <snip> _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
