setTextFormat is not a method of TextArea. setTextFormat is a method of TextField. TextArea is not the same as TextField. TextArea is a Flex control. TextField is a base Flash player control. TextArea uses a TextField control internally. If you were to subclass TextArea you could access the protected variable textField, which is the TextField control within TextArea. Then you could call textField.setTextFormat from within your extended class.
Doug On 1/17/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I checked it and double checked it..... very frustrating. . > > > Sherif Abdou wrote: > > There is no setTextFromat property in the TextArea > > > > ----- Original Message ---- > > From: "[EMAIL PROTECTED] <info1%40reenie.org>" <[EMAIL > > PROTECTED]<info1%40reenie.org> > > > > To: [email protected] <flexcoders%40yahoogroups.com> > > Sent: Thursday, January 17, 2008 10:58:06 AM > > 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:TextForma t= new TextFormat() ; > > formatter.bold= true; > > formatter.size= 30; > > feedback.setTextFor mat(formatter) ; > > > > <mx:TextArea id="feedback" width="230" fontWeight=" bold" text="" > x="350" > > y="100" > > > > > </mx:TextArea > > > > > > > > > ---------------------------------------------------------- > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > > it now. > > < > http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20> > > > > > > > >

