"Merlyn MM" <webforumsuser@macromedia.com> wrote in message
news:gd5uat$ec5$1@forums.macromedia.com...
> 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]
>
http://www.magnoliamultimedia.com/fl...s_Flex_FAQ.pdf
Q 11