[flexcoders] Re: setStyle not valid
--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: styleLabel.setStyle(fontSize, 72); -TH --- In flexcoders@yahoogroups.com, j2me_soul j2me_soul@ wrote: I try to change the style at runtime mx:Button x=38 y=44 label=ΪÖйúºÈ²Ê click=butClickHandler(event)/ mx:Label id=styleLabel text=I'm Label/ private function butClickHandler(event:MouseEvent):void { /* it doesn't work */ styleLabel.setStyle(font-size, 72); } Try this: styleLabel.setStyle(fontSize, 72); Flex Style names are camel cased so instead of font-size it is fontSize
[flexcoders] Re: setStyle not valid
I try change cause no work and me no Google. --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: styleLabel.setStyle(fontSize, 72); -TH --- In flexcoders@yahoogroups.com, j2me_soul j2me_soul@ wrote: I try to change the style at runtime mx:Button x=38 y=44 label=ΪÖйúºÈ²Ê click=butClickHandler(event)/ mx:Label id=styleLabel text=I'm Label/ private function butClickHandler(event:MouseEvent):void { /* it doesn't work */ styleLabel.setStyle(font-size, 72); } Try this: styleLabel.setStyle(fontSize, 72); Flex Style names are camel cased so instead of font-size it is fontSize
[flexcoders] Re: setStyle not valid
styleLabel.setStyle(fontSize, 72); -TH --- In flexcoders@yahoogroups.com, j2me_soul j2me_s...@... wrote: I try to change the style at runtime mx:Button x=38 y=44 label=ΪÖйúºÈ²Ê click=butClickHandler(event)/ mx:Label id=styleLabel text=I'm Label/ private function butClickHandler(event:MouseEvent):void { /* it doesn't work */ styleLabel.setStyle(font-size, 72); }