Tomás Lin’s Programming Brain Dump

Flex, Grails, Facebook, iPhone and all that Jazz

Posts Tagged ‘ActionScript

Resolving Grails XML references in ActionScript / Flex

with one comment

Grails uses XPath in its XML converter, which requires additional processing in the Flex / ActionScript world. This post introduces a very simple solution that converts XML references into non-reference nodes. Read the rest of this entry »

Written by Tomas Lin

August 3, 2008 at 1:07 am

A simple ActionScript / Flex REST client

with 6 comments

When I started my new job a few months ago, we inherited a Cairngorm-based Flex REST client that was ugly, clunky and hard to maintain. Worst of all, due to Cairngorm’s brutal MVC model, it didn’t allow us to call the service in the context of the Flex component.

Our architect Tim re-wrote it into a single class, stripping out all the Cairngorm madness so it can be
called within a single service. More recently, I refactored the class into a singleton and removed some legacy Spring Security authentication — now handled by the Jsecurity plugin in Grails.

Combined with the Content Negotiation features of Grails, this allows us to quickly communicate with a flex application without the need to the complex binding provided by the BlazeDS platform from Adobe ( which, by the way, is available to Grails through the Flex Plugin ).
Read the rest of this entry »

Written by Tomas Lin

June 12, 2008 at 1:46 am

Posted in Uncategorized

Tagged with , ,