Thread: button skin
View Single Post
  #5 (permalink)  
Old 10-16-2008, 12:30 AM
Merlyn MM
 
Posts: n/a
Diggs:
Default Re: button skin

Amy

Thanks for your help. Since I do not know the image files upfront to embed
them like in your example. This is what i did and its not correct. Can you
please guide me further?

private function styleFunction(repeaterItem:Object):Class{
var btnIcon:Class = repeaterItem.ICON;
return btnIcon;
}

<mx:Button width="175" label="{myRepeater.currentItem.CATEGORYDESC}"
data="{myRepeater.currentItem}" mouseOver="changeStyle(event)"
upSkin="@Embed(source=styleFunction(event.target.g etRepeaterItem()))"
click="displayId(event.target.getRepeaterItem())"
mouseUp="categorySummarySelected(event.target.repe aterIndices[0])"/>
[h] upSkin="@Embed(source=styleFunction(event.target.g etRepeaterItem()))"[/h]

Reply With Quote