One of my internet friends said that she’d like a simple desktop app which would allow her to post to multiple sites like Twitter, Plurk, etc. A little later she plurked about how HelloTxt basically does what she wants except that it doesn’t have a desktop app.
Adobe AIR to the rescue.
HelloTxt has a mobile client interface written in HTML so making a simple cross-platform desktop app was as simple as firing up Flex Builder, adding panel and HTML components, and specifying HelloTxt’s mobile client interface’s URL as the HTML component’s “location.” I then twiddled around with a little bit of styling and config. stuff but that wasn’t necessary to make it work.
<mx:windowedapplication title="Grrrgregg8r" height="550" width="300"
layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:panel headerheight="10" bottom="0" right="0" top="0" left="0"
layout="absolute">
<mx:html bottom="0" top="0" left="0" right="0"
location="http://m.hellotxt.com/" />
</mx:panel>
</mx:windowedapplication>
A cross-platform desktop application in five lines of MXML. Pretty dang nifty if you ask me.
A compiled/working version of Grrrgregg8r is available by right-clicking the link below and doing that “save as” thang.
Grrrgregg8tr - An AIR “microbrowser” for HelloTxt
Categories: AIR, Cool Stuff, Flex
1 Comment »