Java is tricky, verbose and ugly. And an excellent programming language! I’ve always avoided it, with some kind of subconcious thought that I should use it, know it, that real grown-up programmers program in java. I’we been working on a music notation solution for some months. Started in AS3, while one of the goals is… [Read more…]
Needed the possibility to handle simple string encryption/decryption the other day — handling the same data in both php and As3. Just a little bit of key salting, and some Base64 encryption. No problem except for the Base64 part. When trying this out, only one of my Base64 libraries gave the same result as the… [Read more…]
Flash/Flex doesn’t support PUT or DELETE requests, because the browsers don’t — due to limitations in the NPAPI. This is a source of frustration. Workarounds using sockets or prioxies are messy, don’t work with binary data or some other problem… But fortunately, there seems to be a good (enough) solution! Keenan, at Automata Studios, blogs… [Read more…]
(Please have a look at part 1 of this walkthrough!) Source code for the following example can be found here. So, now we have an application shell for our clock — we have the UI and we can interact with it. ClockModel – our application data We are dealing with time here — time is our application… [Read more…]
I’ve been trying to get the grips on dependency injection in AS3 for a while. Robotlegs MVCS framework (http://robotlegs.org) is causing the most buzz in the community now, but it seemed to be a too big step for me: not only dependency injection, but also at the same time mediators classes, commands, scary metatags… Well,… [Read more…]
Action Message Format is a proprietary data format used by FlashPlayer in remoting, streaming, shared objects etc. Its binary nature makes it a very efficient way to transfer data – more compact than xml or json. Thanks to Zend_AMF it’s easier than ever to serialize/deserialize data objects – it’s now a breeze to handle data… [Read more…]
Using bitmaps in an AS3 remoting environment isn’t that easy. If I’m getting it right, the problem is that the BitmapData object needs constructor parameters, wich isn’t combinable with the handy [RemoteClass(alias= ] method of invoking the objects when streaming data into a ByteArray. A walkaround is to wrap the BitmapData into a custom class… [Read more…]
There’s always something interesting going on in the actionscript world of brothers Jacob (jacwright.com) and Tyler Wright (xtyler.com). I’ve been using their Flight Framework (www.flightxd.com) for some time now, and it’s the first of the many flex/as3 frameworks I’ve tried that has really made me more productive. Check it out! In a recent article, Jacob… [Read more…]
When fiddling with using zip in Flex/As3, I discovered that the Sound class doesn’t have a .loadBytes method (corresponding to the Loader class .loadBytes method). I was able to get the byteArray data out of the zip, but no way to feed a Sound object with it! Grr..! Luckily, there are lots of gifted bravehearts… [Read more…]
November 10, 2010
0