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:[email protected]] 
Envoyé : mercredi 2 octobre 2013 09:19
À : [email protected]
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

Reply via email to