flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Amsellem <maurice.amsel...@systar.com>
Subject RE: spark.skins.SparkButtonSkin -> Undefined state 'up'
Date Wed, 02 Oct 2013 08:58:49 GMT
Actually, SparkButtonSkin is an abstract  skin class, so it does not have any states and cannot
be used directly.

The default skin for "normal" buttons is spark.skins.ButtonSkin.

If you want to customize the skin to add an icon, copy-paste the code from ButtonSkin and
customize it.

Regards,

Maurice

-----Message d'origine-----
De : Frank Dahmen [mailto:frank@dahmenia.de] 
Envoyé : mercredi 2 octobre 2013 09:19
À : users@flex.apache.org
Objet : spark.skins.SparkButtonSkin -> Undefined state 'up'

Hi,

i'm using

<s:Button label="button" skinClass="spark.skins.SparkButtonSkin"/>

got the error: Undefined state 'up'.


do i have to to subclass SparkButtonSkin?

(i want to put an icon on the Button)


thanks

Mime
View raw message