Hi,

fontSize is a style not a property of the Label

try;

this.serial.setStyle("fontSize", 8);

Peace, Mike

On 5/16/06, willchapm <[EMAIL PROTECTED]> wrote:
An mx:Label's font attributes are notavailbale in Actionscript in Beta
3.  I'm using:

<mx:Label id="sig" fontWeight="bold" fontSize="20">

I'm trying to change the font size and weight via actionscript at
runtime:

this.serial.fontSize = 8;

However, I can't see the attributes in FlexBuilder.  When I try to
override it and set them myself, I get:

"Access of possibly undefined property fontSize through a reference
with static type mx.controls:Label"

What am I doing wrong, or is this a "Beta 3 thing"?

---Will





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS






--
What goes up, does come down.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to