Re: button skin
If I give the file name it works but thats not what I am looking for. The file
name is provided by the data provider and the button is inside a repeater. Each
button has a different image file which is provided by
myRepeater.currentItem.ICON
<mx:Repeater id="myRepeater" dataProvider="{catInfo}">
<mx:HBox id="bigbox">
<mx:Image id="img" source="{myRepeater.currentItem.ICON}"/>
<mx:Button width="175" label="{myRepeater.currentItem.CATEGORYDESC}"
data="{myRepeater.currentItem}" mouseOver="changeStyle(event)"
upSkin="@Embed(source='{myRepeater.currentItem.ICO N}')"
click="displayId(event.target.getRepeaterItem())"
mouseUp="categorySummarySelected(event.target.repe aterIndices[0])"/>
</mx:HBox>
</mx:Repeater>
Thanks!
|