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);
}

Unknown's avatar

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. Unknown's avatar 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 to Craig Grummitt Cancel reply