I want to set the icon of a button in flex.
The default syntax is as follows.
myButton.setStyle("icon", iconClass);
and iconClass is normally an embedded object.
But what I want to do is, use a standard Sprite or a MovieClip (which I find during runtime) as the icon.
Is this possible? Has anyone done this?
Thanks!