I know that ActionScript3 allows functions to be passed as arguments to be other functions. Is it possible for an MXML component to be passed as an argument for a function? If so how?
For instance, I would like to do something like this:
private function getGlobalXY(comp:UIComponent):Point{
return comp.localToGlobal(new Point(0, 0)));
}
But I get an error: "Type was not found or was not a compile-time constant: UIComponent."
This is as part of a Flex Project. I am using Flex 4.7.