Skip navigation
anu3000
Currently Being Moderated

Item renderer using action script

Sep 18, 2009 4:11 PM

Hi,

Can anybody tell me how to use item renderers using actions script,

I have a data grid and iam using item renderer in mxml works fine but it is causing memory issues >

So i want to know to use item renderers in action script to avoid memory issue.

 

Thank You,

Anu

 
Replies
  • Currently Being Moderated
    Sep 18, 2009 5:06 PM   in reply to anu3000

    use the ClassFactory

    example:

    <!-- MyCombo.mxml -->

    <?xml version="1.0" encoding="utf-8"?>

    <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml" >

    </mx:ComboBox >

     

    and in ActionScript

    private var myComboFac:ClassFactory = new ClassFactory(MyCombo);

     

    private function myFunction():void

    {

        colCombo.itemRenderer = myComboFac;  

    }

     

    and in DataGrid

    <mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml">

        <mx:columns>

            <mx:DataGridColumn id="colCombo" />

        </mx:columns>

    </mx:DataGrid>

     

     

    regards

     

    --

    Leonardo França

    Adobe Certified Expert Flex 3 with AIR

    Adobe Certified Expert Rich Internet Application Specialist v1.0

    Adobe Certified Expert Flash CS3 Professional

    Certified Professional Adobe Flex 2 Developer

    Adobe Certified Professional Flash MX 2004 Developer

    http://www.leonardofranca.com

    http://twitter/leofederal

    Manager AUGDF - Adobe User Group do Distrito Federal

    http://www.augdf.com.br

    http://twitter/augdf

     

     

     

     

    anu3000 escreveu:

    Hi,

    Can anybody tell me how to use item renderers using actions script,

    I have a data grid and iam using item renderer in mxml works fine but it is causing memory issues >

    So i want to know to use item renderers in action script to avoid memory issue.

     

    Thank You,

    Anu

    >

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points