Hi I have a little problem. Is there a way to identify which skin is applied to button? I want to use an if-else statements…
//if Skins.skin1 is used
//statements...
//else if Skins.skin2 is used
//statements...
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Spark components that extend
SkinnalbleComponent, like theButtonhave a skin property. It is set after Flex attaches the the skin to the component. It could be null, for example, if you create the Button in Actionscript and immediately check the value ofskin.You can query the skin for it’s type like this:
Or even: