[Arp] Dispatching system events: command gets data from the viewRef, or the event is dispatched with data attached?
Chris Velevitch
chris.velevitch at gmail.com
Sun Jun 4 21:37:19 PDT 2006
On 6/5/06, João Saleiro <joao.saleiro at webfuel.pt> wrote:
> I've been thinking about this lately, and I'm not sure what's the preferable
> solution. When commands are run, via dispatching of system events, and they
> need data to operate, is it better to call a function on the viewRef, or to
> pass the data directly in the event object?
The use of viewRef is not best practice. Pass the data directly or use
a ModelLocator to stroe the data and have the command access.
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
More information about the Arp
mailing list