Cookbook Draft is Half-Way Cooked

Yeah- I hit a pretty big milestone this week with the draft for my book on Android and Flash Platform development (the book is still untitled). I’ve submitted 5 chapters and am mid-way through a 6th. This actually places me about a month and a half ahead of schedule, which is pretty darn good. 180 pages!!! Some Thoughts The process so far has been a lot like writing a bunch of small articles. I’ve handled it in a similar way to writing an album – one track/chapter at a time. Things are definitely overwhelming if you think about the entire

Continue reading »

ActionScript 3 Google Analytics API

Over on the Google Analytics weblog, they’ve posted about a new (official) AS3 library for GA! Apparently, the library is pretty robust, featuring; Metrics, Dimensions, Filters, Sequenced Pagination, and Data Views. I’ve dealt with Google Analytics and Flash in the past using the Google Analytics Tracking For Adobe Flash ActionScript 3 API which, from my experience, is still very useful. I even did a session on it at the FITC Unconference during Adobe MAX 2009. Grab the code or check out a quickstart.

Continue reading »

Parsing Tweets with the TwitterString Class

While building a little Twitter aggregator for an upcoming conference, I found myself in need of a set of methods to create hyperlinks from three distinct elements that can be included within a tweet; links, usernames, and hashtags. I was able to find regular expressions to do all the heavy lifting from various sources on the Web and have created a class which pretty much does all the processing with one method call. Here’s an example of the thing working, followed by example code, and the class itself. Example SWF Flash Player 11.2 or greater is required! Example MXML 1

Continue reading »

Quick Tip: Display Application Version in your AIR App.

Just a quick tip for those looking to somehow display the AIR application version from the descriptor file. I’ve found it very helpful in troubleshooting is users can say EXACTLY what version of the app they are running. AIR 2.5 and later: private function getAppVersion():String { var appXml:XML = NativeApplication.nativeApplication.applicationDescriptor; var ns:Namespace = appXml.namespace(); var appVersion:String = appXml.ns::versionNumber[0]; return appVersion; } Older versions of AIR: private function getAppVersion():String { var appXml:XML = NativeApplication.nativeApplication.applicationDescriptor; var ns:Namespace = appXml.namespace(); var appVersion:String = appXml.ns::version[0]; return appVersion; }

Continue reading »