{"id":386,"date":"2012-09-18T11:46:31","date_gmt":"2012-09-18T18:46:31","guid":{"rendered":"http:\/\/dimitrakarakou.gr\/digitalmedia\/?p=386"},"modified":"2022-11-16T03:04:43","modified_gmt":"2022-11-16T10:04:43","slug":"how-to-change-the-size-font-in-a-text-field-on-as3","status":"publish","type":"post","link":"https:\/\/dimitrakarakou.gr\/digitalmedia\/how-to-change-the-size-font-in-a-text-field-on-as3\/","title":{"rendered":"How to Change the size Font in a Text Field on AS3"},"content":{"rendered":"<p>How to Change the size Font in a Text Field Component on AS3<\/p>\n<p>Use the TextFormat class and apply size property<\/p>\n<p>\/\/declare format<br \/>\nvar format:TextFormat = new TextFormat();<br \/>\n\/\/set format size<br \/>\nformat.size = 16;<\/p>\n<p><strong><br \/>\nif text is empty It will not work<\/strong> as there is no text in the box to format.<br \/>\nso you have to <strong>apply setTextFormat propery on TextField object when there is a text on the box <\/strong><\/p>\n<p>insideText.text = &#8220;Your text goes here.&#8221;<\/p>\n<p>\/\/apply your format to insideText<\/p>\n<p>insideText.setTextFormat(format);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Change the size Font in a Text Field Component on AS3 Use the TextFormat class and apply size property \/\/declare format var format:TextFormat = new TextFormat(); \/\/set format size format.size = 16; if text is empty It will not work as there is no text in the box to format. so you have &#8230; <a class=\"more-link386 \" href=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/how-to-change-the-size-font-in-a-text-field-on-as3\/\"><span style=\"font-weight: 900; color: #000; font-family: 'Delius Swash Caps', cursive;\">Take a further walk&#8230;<\/span>  <img decoding=\"async\" class=\"catFootprints386\" src=\"\"><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[78],"tags":[23,80,28],"_links":{"self":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts\/386"}],"collection":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":3,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":2160,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts\/386\/revisions\/2160"}],"wp:attachment":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}