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: video course:

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

    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: Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: