我有一個用粗體和藍色格式化的TextField
。但是,當我更改TextField.text
時,textfield
的格式重置,我必須再次setTextFormat
。Actionscript TextFormat在更改TextField.text時重置
這是我用來設置我的TextField
的代碼。 myText
是我的TextField
的變量。 (這只是我的代碼的一部分,但是它是我的EventListener
功能的一部分)
yourName = body_txt.text;
myText.text = "This is the new text";
如果我沒有記錯,setNewTextFormat只是一種AS2語言方法。 – 2010-01-19 07:47:06