cpthk
08-16-2010, 09:25 PM
I have seen some code like this:
<mx:Script>
private function tipFunc(canvas:Canvas):String{
return .....;
}
</mx:Script>
<mx:DataGrid ...
dataTipFunction = "{tipFunc}">
</mx:DataGrid>
I am wondering how does flex figure out I want to pass in "canvas" to the function? How does it know where to look for "canvas"? In the DataGrid declaration, there is no any parameter passed in. What parameters are allowed to pass in like that?
Thanks.
<mx:Script>
private function tipFunc(canvas:Canvas):String{
return .....;
}
</mx:Script>
<mx:DataGrid ...
dataTipFunction = "{tipFunc}">
</mx:DataGrid>
I am wondering how does flex figure out I want to pass in "canvas" to the function? How does it know where to look for "canvas"? In the DataGrid declaration, there is no any parameter passed in. What parameters are allowed to pass in like that?
Thanks.