If I embed an image like this:
[Embed(source="images/myImage.gif")]
public var myImage:Class;
<mx:Button id="myButton" height="22" width="22" icon={myImage}/>
The image is properly centered on the button.
However, I need to embed the image via styling, like this:
.myButtonStyle{
icon: Embed(source='images/myImage.gif');
width: 22;
height: 22;
}
<mx:Button id="myButton" styleName="myButtonStyle"/>
This leaves the image right justified and I need it centered. The
image itself is 10x17, and I suppose that I could modify it to fit
the dimensions of my button, but I have quite a few images that would
have to be modified.
JF