{"id":208,"date":"2009-03-03T00:00:14","date_gmt":"2009-03-03T07:00:14","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=877"},"modified":"2009-03-03T00:00:14","modified_gmt":"2009-03-03T07:00:14","slug":"stringfromcharcode","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=208","title":{"rendered":"String.fromCharCode()"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\n&#x5B;SWF(height = 950, width=1000)]\r\nvar txt:TextField;\r\nvar num:int = 0;\r\nfor (var i:int = 0; i&lt;761; i++){\r\n\tif (i % 76 == 0){\r\n\t\t makeTxt(num);\r\n\t\t num++;\r\n\t}\r\n\tif (i &lt; 0x21){\r\n\t\ttxt.appendText(&quot;-n&quot;);\r\n\t}else{\r\n\t    txt.appendText(String.fromCharCode(i) + &quot; = &quot; +  i + &quot;n&quot;);\r\n\t}\r\n}\r\nfunction makeTxt(num:Number):void{\r\n\t txt= TextField(addChild(new TextField()));\r\n     txt.x = 10 + num * 100;\r\n     txt.y = 10;\r\n     txt.height = 930;\r\n     txt.text = &quot;&quot;;\r\n}\r\n<\/pre>\n<p>This will draw a few columns of char codes. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x5B;SWF(height = 950, width=1000)] var txt:TextField; var num:int = 0; for (var i:int = 0; i&lt;761; i++){ if (i % 76 == 0){ makeTxt(num); num++; } if (i &lt; 0x21){ txt.appendText(&quot;-n&quot;); }else{ txt.appendText(String.fromCharCode(i) + &quot; = &quot; + i + &quot;n&quot;); } } function makeTxt(num:Number):void{ txt= TextField(addChild(new TextField())); txt.x = 10 + num * 100; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[3,4],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-strings","tag-actionscript","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}