This technique is also documented (w/examples) in the Skinning chapter of the Developing Flex Applications book:
 
http://livedocs.macromedia.com/flex/20beta1/docs/00001052.html
 
hth,
 
matt horn
flex docs
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Teoti Graphix
Sent: Monday, February 27, 2006 7:18 PM
To: [email protected]
Subject: Re: [flexcoders] Flex2 :: Button :: Custom Skin Classes

Thank you!

That was exactly what I was looking for.

For those who don't have the time to click the link right now,

Solution::

Use a switch statement on the ProgramaticSkin, Border or RectBorder using the 'name' property of the skin class.

Great, and eloquent.

Peace, Mike

On 2/27/06, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
Look at following links on skinning in Flex 2.0:-

http://mannu.livejournal.com/305284.html
http://weblogs.macromedia.com/khoyt/archives/2006/02/programmatic_sk.cfm

-abdul

On 2/28/06, Teoti Graphix < [EMAIL PROTECTED]> wrote:
Hello,

I know in previous incarnations of the Button, you would subclass RectBorder and create a switch or conditional statement based on the borderStyle which actually showed what 'phase' the button is in.

I see that the phase property now is protected. So we can't call paret.phase in the RectBorder skin class.

What is the correct way of subclassing the RectBorder for the skin styles of mx.controls.Button ?

I traced the borderStyle and came up with inset which is obviously a default that means nothing.

Any ideas adobe ?

Peace, Mike


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to