Hi,
I am trying to apply letter spacing to a dynamic textfield
I set it in the properties panel.
I know that this does not work for newly added text.
I searched the web and nothing I found works.
when I try setNewTextFormat I get the error
Warning Migration issue The method setNewTextFormat is no longer supported. Use the TextField.defaultTextFormat property instead
how do I use that defaultTextFormat, I tried this
the typewriter refers to this class that I am using to add text to the textfieldPHP Code:import typewriter;
var fmt:TextFormat = outputTextBox.getTextFormat()
var newTypewriter:typewriter = new typewriter;
var firstMessage:String = "Do you speak multicultural?";
newTypewriter.writeIt(firstMessage, outputTextBox, 30);
outputTextBox.setTextFormat(fmt);
outputTextBox.defaultTextFormat(fmt);
//error was
//1195: Attempted access of inaccessible method defaultTextFormat through a reference with static type flash.text:TextField.
http://entrance4.net/labs/?p=55
Just in case this also affects how I apply formatting
hope someone can help
seems to be a lot of confusion about this
Mark




Reply With Quote