I would do the same, where these public properties update the style information 
of the button (icon & labelPlacement) 

I would also probably do this as an mxml component (with the code inside a 
<mx:Script> tag)

--- In [email protected], "valdhor" <valdhorli...@...> wrote:
>
> If I were going to do this, I would create a new class that extended button 
> with a couple of public properties - one to set the icon side and one to set 
> the icon type.
> 
> 
> 
> --- In [email protected], "tchredeemed" <apthorp@> wrote:
> >
> > I have always wondered what the best way to do this was:
> > 
> > I need to create a reusable button, but this button will sometimes have an 
> > arrow on the right side, an 'x' on the right side, or nothing on the right 
> > side. There might be the possibility to have these on the left side too.
> > 
> > I have attempted this before, but I have never really come up with an 
> > elegant solution. Just wondering what the best/cleanest way to do this 
> > would be?
> > 
> > Thanks!
> >
>


Reply via email to