1 person found this helpful
I find it easier to create a new skin than to fanagle with other stuff. Just make a class that extends button ,
that has a Class class required as a skin part. Then use that to make the skin and you are home free.
By creating a custom button that has an class/image as a required part , you can bypass creating a new skin for each and every button.
If this post was helpful , please mark it as such.
so you could do something like this even though it doesn't have to be a required item.
public class ImageButton extends Button
* The skin part that defines the area where
* the user may drag to resize the window.
public var buttonImage:Object
Then , in your skin you would have an mxml image with the same name ( buttonImage ) that you would position in the skin. In the mxml where you use the class you could just do
<custom:ImageButton id="ib" buttonImage="assets/myButton.jpg" />
I must warn you though , skinning is not my specialty.
If this post was helpful please mark it as such.