{"id":1676,"date":"2007-12-21T07:27:23","date_gmt":"2007-12-21T15:27:23","guid":{"rendered":"http:\/\/localhost\/actionscript-3-or-playing-twister-with-yourcode"},"modified":"2017-01-20T14:19:03","modified_gmt":"2017-01-20T22:19:03","slug":"actionscript-3-or-playing-twister-with-yourcode","status":"publish","type":"post","link":"https:\/\/needmoredesigns.com\/actionscript-3-or-playing-twister-with-yourcode\/","title":{"rendered":"ActionScript 3, or Playing Twister With Your Code"},"content":{"rendered":"

I had quite a day working in Flash\u2019s relatively new ActionScript 3 language yesterday. I have really been spoiled by programming languages like Ruby.<\/p>\n

Here\u2019s an example. I was trying to make something open a new web page in the browser. This is a pretty darned common, obvious thing to need to do in Flash. And until recently, it was appropriately simple: you just use the getURL<\/strong> command, and pass it a string exactly like you would in your web browser. Hard to improve on such simplicity and perfection, isn\u2019t it?<\/p>\n

Oh, but they have. Now you use the navigateToURL<\/strong> command\u2026 but you can\u2019t just pass it the link\u2026 now you must first create a URLR<\/span>equest object to pass it. And be careful \u2013 now it opens a separate browser window by default \u2013 before, the default was to just bring you to the new web page. You see what\u2019s going on here? Much more complex, many more hurdles, and the defaults have changed.<\/p>\n

Why?<\/strong><\/p>\n

Now, I\u2019m sure lots of folks could argue that the \u201cnew way\u201d is much more robust<\/em> and has lots more features<\/em> and scales better<\/em>, but let me tell you, to me it represents everything I loathe about ActionScript these days. After writing in Ruby, which is about the most simple, concise, and elegant language around, ActionScript feels like having to bundle up in your warmest clothes when it\u2019s only like 50 degrees outside. It\u2019s just overkill.<\/p>\n

And it ended up taking me most of the afternoon to figure out how to do some things that should have been far simpler. Frustrating!<\/p>\n","protected":false},"excerpt":{"rendered":"

I had quite a day working in Flash\u2019s relatively new ActionScript 3 language yesterday.<\/p>\n","protected":false},"author":2,"featured_media":8920,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"acf":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/needmoredesigns.com\/wp-content\/uploads\/e-f\/flash.jpg","_links":{"self":[{"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/posts\/1676"}],"collection":[{"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/comments?post=1676"}],"version-history":[{"count":0,"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/posts\/1676\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/media\/8920"}],"wp:attachment":[{"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/media?parent=1676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/categories?post=1676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/needmoredesigns.com\/wp-json\/wp\/v2\/tags?post=1676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}