{"id":486,"date":"2008-07-17T00:34:45","date_gmt":"2008-07-17T05:34:45","guid":{"rendered":"http:\/\/www.randomideas.net\/?p=486"},"modified":"2008-07-17T00:34:45","modified_gmt":"2008-07-17T05:34:45","slug":"actionscript-3-is-a-travesty","status":"publish","type":"post","link":"http:\/\/randomideas.net\/?p=486","title":{"rendered":"ActionScript 3 is a travesty"},"content":{"rendered":"<p>What was Adobe thinking? Not even Java requires jumping through this many hoops!<br \/>\nA pity, because ActionScript 2.0 was actually quite a nice language.<\/p>\n<p>I experimented with it a bit for the new site I was developing for my music. I waded through all of the tedious conversions, getting rid of things like SetInterval in favor of the Timer class, loading movies using the Loader class instead of a direct method, finding lots of things taken out, lots of names changed, but basically the same capabilities packaged in a more structured yet klutzier form.<\/p>\n<p>Then I tried to unload a movieclip.<\/p>\n<p>You can&#8217;t do it. Flash WILL NOT LET GO of the object, even after you call one of the removeChild methods. And since the object in question is an ActionScript 2 music player and (surprise surprise) you can&#8217;t interoperate with ActionScript 2 movies, I&#8217;m stuck in a situation where I can&#8217;t change the file that is playing and I can&#8217;t remove and reload the component.<\/p>\n<p>Alone, this is a bad issue, but after hours of struggling with the language&#8217;s weird idiosyncrasies, I&#8217;m ready to go back to AS2 and forget about learning AS3 until some of the issues are fixed.<\/p>\n<p>Update: I finally solved this problem using LocalConnection. Yes, I needed to use what is essentially a light form of IPC to solve this problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What was Adobe thinking? Not even Java requires jumping through this many hoops! A pity, because ActionScript 2.0 was actually quite a nice language. I experimented with it a bit for the new site I was developing for my music. I waded through all of the tedious conversions, getting rid of things like SetInterval in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-486","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/randomideas.net\/index.php?rest_route=\/wp\/v2\/posts\/486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/randomideas.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/randomideas.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/randomideas.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/randomideas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=486"}],"version-history":[{"count":0,"href":"http:\/\/randomideas.net\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions"}],"wp:attachment":[{"href":"http:\/\/randomideas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/randomideas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/randomideas.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}