ActionScript 3.0 :: TLF GetTextFormat?

Jan 6, 2011

I am trying to set the color of a tlf text. To do this I would use the textformat. But I get an error message.

my code
function setTextColor(txt:* ,col:int){  var tf:TextFormat = txt.getTextFormat();  tf.color = col  txt.setTextFormat(tf);  }

[code]....

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Unable To Use GetTextFormat On A TLFTextField

Aug 24, 2010

I am unable to use getTextFormat on a TLFTextField. I keep getting the error TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.text::TLFTextField/getTextFormat() at Untitled_fla::MainTimeline/frame1() Here's my sample code import fl.text.TLFTextField;import flash.text.*;

[Code]...

View 2 Replies

ActionScript 3.0 :: Textfield.getTextFormat() Does Not Return Correct Format For That Index?

May 17, 2011

All I have in the fla is this code

Code:
stop();
var t; var f;

[code]....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved