I am embedding an image using the decorator attribute of IconItemRenderer. But the image ia large one and I want to set the image height and width to smaller dimensions. I have tried using iconHeight and iconWidth properties. But this is not working. I am a beginer in flex. Can anybody help me out? PFB the code,
<s:List id="list" top="0" bottom="0" left="0" right="0" dataProvider="{srv.lastResult.data.employee}">
<s:itemRenderer>
<fx:Component>
<s:IconItemRenderer label="{data.empName}" decorator="@Embed('../small/empImage.jpg')" iconHeight="1" iconWidth="1" >
</s:IconItemRenderer>
</fx:Component>
</s:itemRenderer>
</s:List>