How do you italicize a string to display dynamically for a scrollbar?
i created dynamic textbox instance , wrote script load text textbox during runtime. works fine. client wants words italicize , can't find solution this. check script below.
var myfont1:font = new font6();
var myformat1:textformat = new textformat();
myformat1.font = myfont1.fontname;
myformat1.size = 15;
var welcomefield:textfield;
welcomefield.autosize = textfieldautosize.left;
welcomefield.defaulttextformat = myformat1;
welcomefield.embedfonts = true;
welcomefield.antialiastype = antialiastype.advanced;
welcomefield.text = "this plain text. plain text.\n\nthis start of 2nd paragragh text. sentence italic.";
use htmltext , <i> </i> tags.
welcomefield.htmltext = "this plain text. plain text.<p></p>this is start of 2nd paragragh text. <i>this sentence be italic</i>.";
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment