Skinning the DateField icon

When adjusting the Date icon skin in a DateField component, its not sufficient to just use the css that Flex auto-generates when importing the Skin Artwork. In addition to ‘skin’, you must also specify that upSkin, overSkin, downSkin, disabledSkin are all set to null. otherwise they will supersede ‘skin’. you do this for example, like so:

DateField {
skin: Embed(skinClass=”DateField_skin”);
upSkin: ClassReference(null);
overSkin: ClassReference(null);
downSkin: ClassReference(null);
disabledSkin: ClassReference(null);
}

iOS development with Swift - book: https://manning.com/books/ios-development-with-swift video course: https://www.manning.com/livevideo/ios-development-with-swift-lv

Tagged with: ,
Posted in Flex
2 comments on “Skinning the DateField icon
  1. s says:

    Omg!!! Thank you so much. This has been driving me crazy and I looked everywhere for an answer about why simply

    Button{
    skin: Embed(skinClass=”whatever”);
    }

    wouldn't work. I finally found it. Thank you, thank you!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: