----- Original Message ----- 
From: "sk8bmx099" <[email protected]>
To: <[email protected]>
Sent: Saturday, March 21, 2009 7:00 AM
Subject: [flexcoders] Flex 3 Image on Data Grid


> http://img25.imageshack.us/img25/5109/datagrid.png
>
> I want it to show the IMAGE <Skill_Name>
>
> Like instead of the label being on the bottom, is it possible to be on
> the right side of the image?

Use HBox instead of VBox for image and label..

Paul

>                             <mx:itemRenderer>
>                                 <mx:Component>
>                                     <mx:VBox width="40" height="40"
> horizontalGap="1" horizontalAlign="left" verticalAlign="middle">

                                    <mx:HBox width="40" height="40" 
horizontalGap="1" horizontalAlign="left" verticalAlign="middle">

>                                         <mx:Image source="{data.image}"
> verticalAlign="left" horizontalAlign="left" scaleContent="false"
> maintainAspectRatio="true" />
>                                         <mx:Label text="{data.skill}"
> verticalCenter="right" />
>                                     </mx:VBox>
>                                 </mx:Component>
>                                 </mx:itemRenderer>

Reply via email to