Making a class for execute actions

1 view
Skip to first unread message

michaelangela

unread,
Oct 17, 2007, 3:36:57 PM10/17/07
to guasaxcoders
I haven't had time to jump into Guasax coding just yet, although a
current project is begging for a simpler rewrite. One thing though
that has always been on my mind though.

In Cairngorm, when you trigger an event, it is a full class. It's a
hassle to go through all the hoops for that one event, but one benefit
you get is... how to say... for lack of a better term, strongly typed
compiler aware events. Once you import it, you know what parameters
and what values need to be passed.

Two thoughts came to mind (I'm still quite new to all of this)
- make a VO for each action you want to execute and import and use
that for passing correct parameters
- make a whole class that handles the executeAction along with
parameter data as well

Those are just some thoughts to keep the coding clean and have code
hints in the Flexbuilder editor. Do you do anything like that?

Thanks!

Michael

Reply all
Reply to author
Forward
0 new messages