ArgumentError: Undefined state 'up'.

Cause:

The skin I was using did not have the required state. The host component was a Button and the Button class requires the “up” state to be defined in the skin. I was using a base skin that did not have the “up” state defined. By using the subclass ButtonSkin I was able to correct the error.

Incorrect:

<s:Button icon="images/rotate1.png"
		  skinClass="spark.skins.SparkButtonSkin"
		  width="48" height="48" />

Correct:

<s:Button icon="images/rotate1.png"
		  skinClass="spark.skins.spark.ButtonSkin"
		  width="48" height="48" />
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s