mon_fmt = new TextFormat(); with (mon_fmt) { size = 30; bold = true; // Regarde toutes les propriétés et methodes de la classe textFormat } createTextField("mon_txt", 0, 100, 100, 200, 100); mon_txt.text = "Salut Mec"; mon_btn.onRelease = function() { mon_txt._height = 300; mon_txt._width = 450; mon_txt.setTextFormat(mon_fmt); };
mon_txt.html = true mon_txt.htmlText = "Tchao Mec"