Hi I ask how to set up style in itemrender.but the link show me the CSS syntax in Flex.
Thanks Mark --- In flexcoders@yahoogroups.com, "invertedspear" <invertedsp...@...> wrote: > > I cannot recommend this tool enough it will help you write the correct CSS to > do whatever you want: > http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html# > > --- In flexcoders@yahoogroups.com, "markflex2007" <markflex2007@> wrote: > > > > Hi, > > > > I try two ways to change a panel board color in a itemRender,both can not > > work.Please help me. > > > > 1 > > > > override public function set data( value:Object ) : void { > > super.data = value; > > if( data.borderTitle == "room" ){ > > panel1.setStyle("borderColor",'#ff0000'); > > }else{ > > panel1.setStyle("borderColor",'#333333'); > > } > > > > } > > > > 2 > > > > <mx:Panel id="panel1" layout="vertical" title="{data.borderTitle}" > > borderColor="{data.borderColor}" width="100%" height="100%" > > > ... > > </mx:Panel> > > > > Thanks for help > > > > Mark > > >