{"id":417,"date":"2009-09-25T18:40:52","date_gmt":"2009-09-26T01:40:52","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=2257"},"modified":"2009-09-25T18:40:52","modified_gmt":"2009-09-26T01:40:52","slug":"great-actionscript-site","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=417","title":{"rendered":"Great ActionScript Site"},"content":{"rendered":"<p>I keep meaning to post a link to <a href=\"http:\/\/jacksondunstan.com\/\"  target=\"blank\">this<\/a> site&#8230; really great articles over there&#8230;. I highly recommend reading through them&#8230;<\/p>\n<p><a href=\"http:\/\/jacksondunstan.com\/\"  target=\"blank\">http:\/\/jacksondunstan.com\/<\/a><\/p>\n<p>After reading <a href=\"http:\/\/jacksondunstan.com\/articles\/115\" target=\"blank\">Everything&#8217;s a Function<\/a>. I remembered another strange thing that I noticed about the ActionScript compiler and auto-formatting.<\/p>\n<p>Auto-formatting in flash is totally broken and can completely ruin your code &#8211; so never use it. It&#8217;s officially unusable as far as I&#8217;m concerned. I can dig up some code later and add it here&#8230; most people reading this probably know exactly what I&#8217;m talking about&#8230;<\/p>\n<p>Anyway&#8230; one thing I&#8217;ve seen auto-formatting do is to remove the () after a class instantiation&#8230;<\/p>\n<p>From this:<\/p>\n<p><code>var s:Sprite = new Sprite();<\/code><\/p>\n<p>to this:<\/p>\n<p><code>var s:Sprite = new Sprite;<\/code><\/p>\n<p>&#8230; and you would think the second one would break, but it doesn&#8217;t &#8211; it works just fine&#8230;. very odd&#8230; to see it in action try this:<\/p>\n<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nvar s:Sprite = new Sprite;\r\nwith(s.graphics) beginFill(0xFF0000), drawCircle(0,0,500);\r\naddChild(s);\r\n<\/pre>\n<p>Can anyone shed light on that?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I keep meaning to post a link to this site&#8230; really great articles over there&#8230;. I highly recommend reading through them&#8230; http:\/\/jacksondunstan.com\/ After reading Everything&#8217;s a Function. I remembered another strange thing that I noticed about the ActionScript compiler and auto-formatting. Auto-formatting in flash is totally broken and can completely ruin your code &#8211; so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132],"tags":[3,14,133,4],"class_list":["post-417","post","type-post","status-publish","format-standard","hentry","category-links","tag-actionscript","tag-as3","tag-auto-formatting","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/417","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=417"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/417\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}