Or, “why I haven’t done any Flash work for a year”
I effectively gave up Flash when I came to Public and it’s now a whole year since I did any significant Flash work. In this short time AS3 has really come of age, there are tonnes of serious libraries, from fractals to physics, and PaperVision 3D seems almost omnipresent. The prospect of going back to the ActionScript freelance circuit after a year on the wagon would be quite daunting. Continue reading…
I was further convinced this week that the world needs JASPA when my Flash developer colleague asked me about closures in JavaScript. He’s been knee-deep in AS3 for almost a year, so JavaScript must seem rather weak now.
Unlike JavaScript and AS2, AS3 supports method closures implicitly; so I made sure they were built into the JAS language. Such a thing is not native to JavaScript so the JASPA compiler automatically generates a call to helper function jaspa.closure
whenever an object’s method is referenced.
If you’ve ever used Delegate.create
in AS2, then you’ve encountered this issue. If you don’t see the problem, consider this example in JavaScript:
Continue reading…
Tim Whitlock's personal site and blog