I would like to have a Spark Button in Flex, with a width of 180 pixels, an icon on the left and a centered label.
Something like this:
| -- icon -------- label -------------- |
At the moment, I have this:
<s:Button width="180" label="Login" icon="@Embed(source='icons/login.png')" />
But then the icon is also centered, just as the label.
Is it possible what I want?
You have to write a custom skin for the spark button. There you can set the icon as your wish.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.