Showing posts with label flex. Show all posts
Showing posts with label flex. Show all posts

Thursday, October 22, 2009

Irish Discussion Trends

Inspired by an analysis of computer science research trends, I wrote a simple application using Adobe Flex and Apache Lucene to analyze trends on the Irish discussion website boards.ie from 1998 to mid-2008. For example, computing only term frequencies within posts, one can observe the rise and fall of Ireland's mobile phone networks:





Please note that the 2008 dataset is incomplete, and so the results trail off for this year.

Thursday, September 03, 2009

It's Not a Feature, It's a Bug

The Flex compiler (mxmlc) has the following feature: It will only include classes in the output swf that are explicitly referenced either within the .mxml files or any explicitly referenced .as files. There is a request for a compiler option to support the inclusion of all classes, but it's still in the works.

The following is one such example where this feature causes difficulties. Suppose I have a Flex client that uses BlazeDS to make an RPC. The RPC returns a Java object that is explicitly mapped to an ActionScript object using [RemoteClass(alias="...")] above the definition of the ActionScript class. This ActionScript class may never be referenced within the Flex code yet is needed to de-serialize the response! The end result is an "Server.Acknowledge.Failed" fault code:

[RPC Fault faultString="Didn't receive an acknowledge message"
faultCode="Server.Acknowledge.Failed" faultDetail="Was expecting
mx.messaging.messages.AcknowledgeMessage, but received null"]