Psyked *
it’s easy once you know how.Tracking Flash / Flex / AIR applications with Google Analytics
Posted by James - 24/06/09 at 09:06:31 amIn case you weren’t aware, a lot of the stuff you can do in a website you can also do in the Flash Player. Prime example: Google Analytics tracking.
Now for a simple Flash movie, you’d traditionally host the Flash file in an external website, and add the tracking to the HTML pages. If you’re doing something a little more different – or are obsessive about knowing how your users are interacting with the content – you might be interested to know that there is support for actionscript-initiated tracking, and that it’s supported by Google themselves (a good sign).
You can read all about the Google Analytics tracking component for Flash on the Google code website: http://code.google.com/apis/analytics/docs/tracking/flashTrackingIntro.html
Where this really comes into its own is in AIR applications. Flash / Flex tracking in a HTML website isn’t really all that special – once you know the API a little, you can always use the ExternalInterface commands in the Flash Player to communicate with javascript functions on the host page, but that kind of option isn’t usually available to a pure Flash-based AIR application. Using the component effectively removes the need for the external javascript file, and means that your desktop AIR application can communicate freely with Google Analytics – enabling application tracking. The code is no different whether its an online Flash webpage, or a desktop AIR application.
Link: Flex – Creating Custom Components
Posted by James - 22/06/09 at 09:06:49 amhttp://www.defusion.org.uk/archives/2007/11/25/quick-link-flex-creating-custom-components/
Link: POSTing XML data, without using HTTPService
Posted by James - 21/06/09 at 06:06:49 pm[This came up a while ago, but I thought I'd promote the link I found that solved my woes.]
The situation: I’m trying to interact with a REST API, via Flex and AIR. Now, I know that the HTTPService class exists in Flex to make it really quick and easy to send and recieve data, but the downside of the HTTPService class is that it assumes a little top much. It assumes for example, that any data you’re trying to send comes in a name/value pair – which my data doesn’t. The REST webservice I’m using requires raw XML data, but the HTTPService class doesn’t do that.
The solution? Well, there’s only one – don’t use the HTTPService class, and code everything yourself. Thankfully, this link I found tells you exactly how to do that, along with examples.
http://tacfug.org/blog/index.cfm/2007/3/26/Flex–Posting-XML-without-using-mxhttpservice-
What are you looking at? (Introducing Screentweetr)
Posted by James - 19/06/09 at 09:06:17 amScreentweetr is my latest little side project; an AIR application for uploading desktop screenshots to twitter image services. You can download it now, from the AIR Marketplace.
So, what is Screentweetr?
Screentweetr is an application built on AIR (Adobe Integrated Runtime). It uses the TwitPic service – which links in to your twitter account – and takes image data from your clipboard and allows you to quickly upload it directly to TwitPic, and the option to immediately tweet the same image on Twitter. Continue reading What are you looking at? (Introducing Screentweetr)…
Tweener – 4 years old now(!)
Posted by James - 19/06/09 at 12:06:34 amZeh Fernando has posted about Tweener – a bit of a roundup of the development and demise [of Tweeners' development] of Tweener. In short, it’s no longer being developed, but it still works and is still pretty awesome. That doesn’t do the post justice though, so head over and read the full post at Zeh’s blog;
http://zehfernando.com/2009/tweener-4-years-later-a-post-mortem/
Link: ToneMatrix
Posted by James - 15/06/09 at 12:06:04 pmToneMatrix, a labs experiment from one of the guys behind the Hobnox Audio Tool is… mesmirizing. The concept is simple – there’s a grid, and each block in the grid represents a specific tone. An invisible playhead constantly loops across the grid and triggers the tones. You toggle the blocks ‘on’ and ‘off’ with a mouse click.
Create your own patterns and fine-tune your melody, or draw pictures and see what they sound like – ToneMatrix can keep you occupied for quite a while. Check it out!
Link: Creating a snazzy background in Flex 4
Posted by James - 15/06/09 at 09:06:05 amPeter deHaan has posted a cool example of the way things work in the new Flex 4 ‘Spark’ framework;
The aim of the new Spark components is to make it much easier to customise the appearance of standard Flex components – similar to the Degrafa project. If you’re interested in either of these, then I hope you’re already signed up for Flash Camp Birmingham, June 16th 2009 (tomorrow), as James Whittaker of RefreshingApps.com will be doing a session entitled “Skinning components with Degrafa & FXG” which should be interesting!





