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 
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