Take a look at this post a made a while back
http://tech.groups.yahoo.com/group/flexcoders/message/146653

This will show you one way you can do it.

--- In [email protected], Nick Middleweek <n...@...> wrote:
>
> Hello,
> 
> At the moment I've been doign this kind of thing for my buttons...
> 
> <mx:Button id="callBack" icon="@Embed(source='assets/select_address.png')"
> ... />
> 
> 
> But I've been asked to change it so that the icon path can be changed using
> a FlashVar, perhaps using CSS?...
> 
> I'm ok with FlashVars but I'm not sure how to assign the image icon
> dynamically?
> 
> Has anyone done this before?
> 
> 
> Thanks,
> Nick
>


Reply via email to