Using Flex 2.0 - I have a child MXML document that has a custom
event like this:
child.MXML
<mx:Metadata>
[Event("selectionChanged")]
</mx:Metadata>
function someFunction() {
dispatchEvent(new Event("selectionChanged", {x:something.x,
y:something.y});
}
Now I'm trying to get the values of x and y back into the
main.MXML file.
I did create a selectionChanged class and Overrided the inherited
clone() method like explained here:
http://livedocs.macromedia.com/flex/2/docs/00001644.html.
This would have been the old way:
<something selectionChanged="getRestaurantListByArea(event.x,
event.y);"/> but in Flex 2.0, it gives an error.
Any help appreciated.