the border style
In a way, the Button does have a borderStyle, it's the button's name
property.
Back in Flash, they used borderStyle in the Button but, in Flex2 to they
changed it to switch on the buttons name.
Anyway, I will write a skin class and put it on my blog. That will be my
contribution to the 'new' devs that I 'wasn't' talking to. :)
PS, I have heard plenty of people bitch about the HaloBorders class to but,
hey unfortunately beginners in ALL of life do not have access to those
things experience gives.
Peace, Mike
On 11/30/06, EECOLOR <[EMAIL PROTECTED]> wrote:
I have to agree with the dude, that its tough to say something like that
to a new person at flex. However, i was thinking the other comments were
correct, and that if you wanted the the button to look something else, you'd
have to use another skin. However, is you want to change the border from
color, you change the 'borderColor' style, if you want to change the fill
colors, you change 'fillColors'. At the top of updateDisplayList within the
ButtonSkin class you see this code:
// User-defined styles.
var borderColor:uint = getStyle("borderColor");
var cornerRadius:Number = getStyle("cornerRadius");
var fillAlphas:Array = getStyle("fillAlphas");
var fillColors:Array = getStyle("fillColors");
StyleManager.getColorNames(fillColors);
var highlightAlphas:Array = getStyle("highlightAlphas");
var themeColor:uint = getStyle("themeColor");
It would have been nice indeed to have the border style thingy in it.
Instead of bitching about the fact that Adobe did not put it in (we all
forget something eventually) i'd recommend you to write a class that has
that border style thingy in it and then share it with us so we can all use
that skin.
Greetz Erik
--
Teoti Graphix
http://www.teotigraphix.com
Blog - Flex2Components
http://www.flex2components.com
You can find more by solving the problem then by 'asking the question'.