That's not a function call, and if enter="myfunction()" doesn't compile then 
enter="myfunction" shouldn't either.
 
If myfunction() is a method of the component or application that contains the 
DataGrid, then you want enter="outerDocument.myfunction()". Without 
outerDocument, you're calling a method on the <mx:Component> that defines the 
item renderer.
 
- Gordon

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of feiy
Sent: Tuesday, September 04, 2007 5:11 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Call function from itemrenderer?



u can do it this:
enter="myfunction"


2007/9/4, candysmate <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >: 

        I tried to call a public function from an itemRenderer situated in a
        dataGrid with enter="myfunction();". But Flex complains that this is
        an undefined method. Which it's not, as I use it successfully elsewhere.
        
        ?
        
        

        




-- 
闲云孤鹤 - 清冷香中抱膝吟 

 

Reply via email to