May 7th, 2010 — 12:04am

I actually took this from production code!
I’ve had it with events in ActionScript 3! They are annoying to structure, annoying to extend, annoying to dispatch but most importantly annoying to consume – and I consume events a lot more than write or dispatch my own.
But! The idea of listening for stuff I really do like. I have some ideas about how this could be done a lot easier. Oh, and please stick around until the very end of this post.
Continue reading »
6 comments » | API, AS3, Programming, Trends
February 12th, 2010 — 1:33am
I recently found, that vimeo.com had a cross-domain policy, that allowed anyone to connect, which was an open invitation for CSRF attacks. I alerted them to the issue, and it has now been fixed.
Continue reading »
3 comments » | API, Flash Platform, Security, Uncategorized
January 21st, 2010 — 9:00am
The twenty-first idea for my 365 social ideas is another gaming idea: create a set of classic flash-based games along the lines of break-out, tetris etc, but integrate a simple storyline with good and bad characters, places and items involved and make these configurable. You could through this create a game of your own life by inserting persons from your surroundings, places where you meet, stuff that you work with etc. and you could send this game to your friends and family and they could then play out the big game of your life.
Continue reading »
Comment » | Flash Platform, Games, January 2010 Ideas
November 4th, 2009 — 12:22pm
I was playing around with E4X last night working on an upcoming blog post about the capabilities of E4X. While playing, I was thoroughly reading the ECMA-357 standard, and found that there are some special rules about assignment and compound assignment, that produce truely unexpected results.
I will try to summarize common pitfalls and provide valid work-arounds.
Continue reading »
Comment » | AS3, E4X
October 21st, 2009 — 1:57pm
As part of a larger project, I noticed an annoying thing, that kept consequently crashing Flash CS4 (on a Mac OS X Intel 10.6.1): Whenever I tried to copy or cut this one symbol from the stage (to place it in another layer), Flash crashed completely.
There were many conditions, that could have been the cause of this, but I managed to boil it down to something reportable.
Continue reading »
Comment » | Flash Platform
October 9th, 2009 — 11:19am
I finally got the time to clean up the code for MXHR4AS3 – an implementation of the Digg-introduced concept of requesting several files from the server in one request and returning it as a multipart/mixed http response to reduce overhead. The original was implemented in JS, and I have further re-implemented it in AS3.
As promised, the code has been uploaded to Bitbucket. Please enjoy and by all means request access if necessary. Please refer to the new project page here for details.
Comment » | AS3, MXHR4AS3
September 4th, 2009 — 1:32pm
After having read about and experimented with Digg’s MXHR concept and DUI.Stream, I have now implemented the very same thing for ActionScript 3. In my tests it really shows a performance-boost over conventional queued download.
Continue reading »
6 comments » | API, AS3, Trends
August 20th, 2009 — 12:28pm
The truth be told, us ActionScript programmers have always had it easy when it came to creating real-time, multi-user applications. We might not have had much processing power back then, but as early as Flash 5 introduced back in 2000, we got the XMLSocket object, which enabled a whole series of multi-user-applications like isometric chat worlds etc. This leaves us JavaScript programmers a bit stranded. We do have Comet and similar technologies, but true persistent connections, we have never had – unless we used a Flash object in the document somewhere, but who wants to use Flash anyway?
But with the dawn of HTML 5, this worry is irrelevant, because with HTML 5 and the greatly improved JavaScript API, we also get a brand new Web Sockets API. This will have the same basic low-level access to bi-directional communication as ActionScript got with the XMLSocket API – it wasn’t XML only, it was just the (widely used) default transport method, but it could easily be circumvented.
Quite stunning though, how such a simple mechanism arrives in JavaScript 10 years later than it did in ActionScript!
Continue reading »
11 comments » | Flash Platform, HTML 5, Trends
July 19th, 2009 — 11:40pm
I have been doing ActionScript 3 projects for quite a while, but every now and then I (as well as many others in the trade) have to switch back to AS2 or even AS1 – the line between them is quite blurry really in retrospective. When doing AS3 projects, there are many features that really come in handy, but it is only when you don’t have them available, that you really find out which are the true improvements, that you cannot live without, and which are just nice little tweaks, that make your everyday scripting easier.
The latter category includes e.g. the for-each-in construct, different number types, class introspection or built-in class look-up by string, but these are my top 6 AS3 features, that I find myself constantly missing when fixing or improving scripts in older versions of ActionScript:
Continue reading »
3 comments » | AS2, AS3, Lists