Perhaps I am not understanding this properly.  When I add the following style 
to my Panel:

<mx:Style>
        .gradientBgrd { 
                borderStyle: applicationControlBar; 
                fillColors: #003483,#a9a7ff; 
                fillAlphas: 0.6, 0.6; highlightAlphas: 0, 0; 
        }       
        </mx:Style>

It renders with a nice gradient background because the borderStyle is set to 
applicationControlBar. 

But how do I access the named .gradientBgrd style in my setStyle commands in 
actionscript?  I believe if I could do that, I could effectively set the 
fillColors in the panel 
with Actionscript.



--- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi,
> 
> fillColors is not a supported property (style) for a Panel.  Unless you
> draw your own gradiant background with a programatic skin (borderSkin)
> or use a background image, you're going to be stuck with a solid
> backgroundColor on a container; except the Application tag.
> 
> -TH
> 
> --- In [email protected], "netdeep" <deepnet@> wrote:
> >
> > I have a panel component:
> >
> > <mx:Panel id="panel" styleName="gradientBgrd">
> > <mx:Style>
> > .gradientBgrd {
> > borderStyle: applicationControlBar;
> > }
> > </mx:Style>
> >
> > And I want to update the fillColors in actionscript:
> >
> > panel.setStyle("fillColors", [0xFF0000, 0x00FFFF]);
> >
> > but this doesn't work. What is the proper syntax?
> >
> > Thanks.
> >
>



Reply via email to