I am trying to provide a simple drill down by getting a name
from a pie slice and then putting the slices contents in a datagrid
based on that name as a filter.
I am trying to use an event dispatcher and an event listener,
but im not exactly sure im doing it right.
The dispatcher would dispatch when something is clicked, and
the string item of what is clicked would be passed into the
remote object. (Not sure how the ItemClick string is passed
by an event)
I know i'm a newb with events.... thanks for any input.
This might sound like a bit over-kill but you might go ahead
and use a seperate EventHandler class and a DTO(Data Transfer
Object) class to accomplish the event even though you are simply
sending 1 piece of data.
DONT FORGET TO ADD THIS EVENT BLOCK:
HERE IS AN EXAMPLE FUNCTION NON-WORKING===
private function setChartName(name:String):void
var chrtName:ChartItemDTO = new ChartItemDTO(name);
var chrtClickEvent:ChartClickEvent = new
Now this is just hacked together quickly not a working model
but you will get the idea.
Basically the event must be passed a Data Transfer Object to
hand off from the Click event.
Like I said this is over-kill but a good place to start as
you venture forth in the the Event Handling world in Flex.