Normally, you adjust a TextArea using setStyle.  If you want to use
setTextFormat, subclass TextArea

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, January 17, 2008 8:58 AM
To: [email protected]
Subject: [flexcoders] Error: Call to a possibly undefined method
setTextFormat

 

Why am I getting: " Error: Call to a possibly undefined method 
setTextFormat"?

I did a search on google and got zero results for "Error: Call to a 
possibly undefined method setTextFormat"
I totally do not understand why I am the only person in the history of 
the world who is getting this error.

Feedback IS a TextArea, and setTextFormat IS a method of TextArea so it 
makes no sense at all.

var formatter:TextFormat= new TextFormat();
formatter.bold=true;
formatter.size=30;
feedback.setTextFormat(formatter);

<mx:TextArea id="feedback" width="230" fontWeight="bold" text="" x="350"

y="100" >

</mx:TextArea >

 

Reply via email to