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!
Found a possible solution. http://blog.benstucki.net/?p=42 Will give this ago and report.