Thanks Matt. The method inside the cellRenderer knows how to play an
effect on the controls(e.g. HBox etc) that are created by the
cellRenderer (and known only to the cellRenderer). The effects will be
'play'ed on 'condition's ONLY known to the holding grid, so, we need
to be able to call the method from outside.

Is this making sense ?


Sanjay


--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> The cellRenderer there is a class reference, not the instance of the
> class.  I'm not sure we expose the reference to the cell renderer
> instances for you, why do you need access to an individual renderer from
> the outside?
> 
>  
> 
> Matt
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of sanjayd
> Sent: Wednesday, July 20, 2005 11:47 AM
> To: [email protected]
> Subject: [flexcoders] cellRenderer question
> 
>  
> 
> Hi.
> 
> I have a public method inside a cellRenderer and I want to call the
> method from the mxml file that holds the grid.
> 
> So, my cellRenderer has code like this:
> 
> <mx:Script>
> 
>         <![CDATA[
>      
>        public function test1() {
>            mx.controls.Alert.show("got here" , "TestCellRenderer");
>        }
>         ]]>
> </mx:Script>
> 
> 
> and, I call the method like this, from inside the mxml file that holds
> the grid:
> 
>       function callTest1InCellRenderer() {
>         var clObject:Object = myDataGrid.getColumnAt(3).cellRenderer;
>         clObject.test1();
>       }
> 
> BUT, this does not work..any suggestions ?
> 
> Thanks in advance. Sanjay
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> 
> Computer software testing
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+testing&w1=Comput
> er+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+develo
> per&c=4&s=93&.sig=kh2CguJwmatU5oBXjFo9Rg>  
> 
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Computer+softwar
> e+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=
> 93&.sig=dAUcEV7do91-wrRtVS641g>  
> 
> Development
> <http://groups.yahoo.com/gads?t=ms&k=Development&w1=Computer+software+te
> sting&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.
> sig=AlxNUQBOI7Io7S7nhmxV0Q>  
> 
> Software developer
> <http://groups.yahoo.com/gads?t=ms&k=Software+developer&w1=Computer+soft
> ware+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4
> &s=93&.sig=QWIit8JayomoIHLVkV3FDg>  
> 
>  
> 
>  
> 
>  
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
> ________________________________




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to