Just a brief comment from myself - Since no solutions were really being offered up until Mike's posted comment, any solution (even if it's a bit complex) is better than NO solution whatsoever. At least the original poster, has something to get him going in the interim, until a more simple solution presents itself potentially later on. One last note: after diving into Mike's sizing component, it's become apparent to me that Mike has a much deeper understanding on how Styles work than most other developers - as well as how they are tightly integrated/implemented into the entire Flex Framework. With that said, there is no better person that could have replied to that original post, than Mike. Just wanted to throw that in - Thanks :) Mike
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Thursday, November 30, 2006 8:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Styling in Flex is officially ridiculous > something that I feel needs to be addressed in order to improve the Flex framework. I think that is all you had to say in your original post. As far as me, along with the line above... what do we do? We know this isn't going to be changed in the near future. So, we as 'advanced and complicated developers' create a solution from a problem and blog about it. Peace, Mike On 11/30/06, ben.clinkinbeard <[EMAIL PROTECTED]> wrote: 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 flexcoders@yahoogroups.com <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 > > > > Blog - Flex2Components > > http://www.flex2components.com > > > > You can find more by solving the problem then by 'asking the question'. > > > > > > -- > 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'. > -- 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'.