myTextFormat = new TextFormat();
myTextFormat.font="Verdana"
myTextFormat.size=_root.base.fontsizebox;
myTextFormat.bold=_root.base.fontbold;
myTextFormat.italic=_root.base.fontitalic;
_root.drawing.textname.setTextFormat(myTextFormat);
In this case the size, bold, and italic parameters are assigned to variables taken from the control panel, and update dynamically each time the frame loads. Theyre then applied to a text field named textname.


