The only thing that annoyed me about Ben's complaint was the hyperbole of his subject line, "Styling in Flex is officially ridiculous". (My own not-so-humble opinion is that Flex's use of CSS styles is pretty cool.)
I agree with him that it would be nice if ButtonSkin were more styleable. More importantly, we need to hear about the cases where developers think Flex makes something too difficult, because he's right that it's the only way to get mass adoption. That doesn't mean our team will address every one of them, due to competing priorities and judgments about how many other developers are likely to have the same complaint. (I'm not aware of many requests for borderless buttons before Ben's.) But if we don't know about your pain points, we aren't likely to make them go away. - Gordon ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, November 30, 2006 6:29 AM To: [email protected] Subject: [flexcoders] Re: Styling in Flex is officially ridiculous I must say, I really don't understand how I am being offensive. If you took issue with my hypothetical new developer conversation, well, you shouldn't. I was merely trying to point out that your solution is a complex one, and requiring these types of workarounds does not encourage the very important drive towards Flex adoption by new developers. I was also very clear to state that I have immense respect for Adobe, and did not call them 'teh suck' or anything similar. I am trying to draw attention to something that I feel needs to be addressed in order to improve the Flex framework. I think EECOLOR summed up my thoughts pretty well by pointing out that lots of other things are done with getStyle() and it sure would have been nice to make border one of those things. Roger, thanks for the XP theme link, I had not seen that before. Ben --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > EDIT :: > > > In a way, the Button does have a borderStyle, it's the button's name > property. > > supposed to be > > In a way, the ButtonSkin class does have a borderStyle, it's the button > skin's name property assigned in the Button class. > > Peace, Mike > > On 11/30/06, Michael Schmalle <[EMAIL PROTECTED]> wrote: > > > > > 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 <http://www.teotigraphix.com> > > > > Blog - Flex2Components > > http://www.flex2components.com <http://www.flex2components.com> > > > > You can find more by solving the problem then by 'asking the question'. > > > > > > -- > Teoti Graphix > http://www.teotigraphix.com <http://www.teotigraphix.com> > > Blog - Flex2Components > http://www.flex2components.com <http://www.flex2components.com> > > You can find more by solving the problem then by 'asking the question'. >

