Hello, i want to know or its possible to combine a imageand a label in a cellrenderer.

This is the code I have now, this is working and it shows a bar (which represents a value between 0 and 100)

 

 

<mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml">

    <mx:Script>

        function setValue(str:String, item:Object, sel:Boolean) : Void {

            image.source="assets/bar.jpg"

            image.maintainAspectRatio  = false;

            image.width = item["CB_INDEX"];

            image.height = 5;

        }

    </mx:Script>

    <mx:Image id="image" height="5"/>

</mx:VBox>

 

Greets,

 

Sjors Pals

Reply via email to