One thing this discussion proves is how difficult it is to create a 
button flex that provides enough flexibility for the average developer. 
I don't think the border is the only limitation.

Here are a few other limitations with the default button skin:

- Selected states only support a single fill color.
- Corner radii cannot be specified individually  (although the FocusSkin 
somehow supports this)

There are probably others. Perhaps it would be worth aggregating these 
requirements, and then create a community supported Flex skin 
repository?  I would definitely be willing to help with this.

Thoughts?


Michael Schmalle wrote:
>
> > 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] 
> <mailto:[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 <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'.
>     >
>
>
>
>
> -- 
> 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'.
>  

Reply via email to