Using a transparent image as the skin is cleanest and easiest.  The
"skins" array in Button.as is private, so you'd have to subclass; in
order to get to those display objects.  You can partially trick the
button with myButton.mx_internal::currentSkin.alpha = 0, but that's a
real hack; not to mention unsupported.  Setting the colors the same as
the background doesn't create a re-usable solution; as the background
might be an image or gradient.  So, while its fun to extend, for
something like this, I'd just use a transparent image there as the skin
and be done with it.

-TH

--- In [email protected], "Dennis Falling" <[EMAIL PROTECTED]>
wrote:
>
> I hacked this up by creating a small png that's entirely alpha. Much
> cleaner than all the CSS required to make an enhanced button skin look
> plain. It looks great, but are there are any better ways to do this?
>
> Thanks
>
>
> On Sat, Jul 5, 2008 at 7:19 PM, Dennis Falling [EMAIL PROTECTED] wrote:
>
> > What's the best way to create a border-less button? I'm trying to
pull it
> > off with flexlib's enhanced button skin but it appears to be
ignoring the
> > font-family I set. Basically I just want a button that has text and
an icon
> > and these will change color on mouseover. No border/backgrounds
should ever
> > be visible.
> >
> > http://dl.getdropbox.com/u/15760/replay.png
> >
>


Reply via email to