Dead Ink Vinyl

Musings of David L Kinney

Posts Tagged ‘actionscript

XSL in Adobe AIR

Brian Riggs shows us how to perform client-side XSL/XSLT in an AIR application. Thanks to Brian for shining light on this, and thanks to Mike Chambers for sharing the link on Twitter today. Brian’s post is from May, so many of you may have already seen it.

The solution Brian outlines requires JavaScript because the only XSL toolkit AIR provides is inside of the WebKit HTML rendering engine. Consequently, AIR developers working with the Flash or Flex APIs will need to use an ActionScript-JavaScript bridge. Brian provides a nice code snippet showing how to create that bridge. Great, but still a kludge.

Unfortunately, XSL doesn’t seem to have made it into the Gumbo API for the next version of Flex and AIR. There is also no mention of XSL in Mike Chambers’ September post about AIR 1.5. I have not had an opportunity to pull down a recent nightly build of the Flex trunk to verify that the ActionScript API for AIR continues to lack XSL support, but all indications are that XSL is not present.

A little bit of Googling indicates that I am not alone in desiring XSL capabilities in AIR that do not require a bridge to JavaScript. I know that XSL is not like the hot stuff that Adobe like to tout in its products (OLAP only made it in because of its use in visualization), but it’s a real asset for enterprise developers.

I suspect that Adobe’s plan may be to leave out XSL—and a lot of other large-but-niche APIs—and let teams needing those capabilities include them with FlaCC, the upcoming C/C++ to Flash byte code compiler. (More info about FlaCC, including links to slides and a hi-res presentation video is available here). Specifically, for XSL, Xalan and Xerces could be imported. In truth, I find this to be an attractive solution, in part because I’m sure someone else will go through the hassle of compiling the popular C/C++ libraries to SWCs for me—I will only need drop those into my project.

However, if you are an AIR developer who cannot wait for FlaCC or want to see XSL make it into AIR’s officialy ActionScript API, consider submitting an enhancement request.

Written by dlkinney

October 9, 2008 at 12:22 am

Thoughts Kicking Around

I’m working on two entries at the moment. The first entry is about ActionScript 3 turning into Java with all of the frameworks, needless abstractions, and developers who think they know solid programming practices because they can spell MVC. The second entry is my response to several articles I’ve recently read about how to hire the best developers. I don’t expect to get either entry done before the weekend, though.

Written by dlkinney

October 24, 2007 at 4:18 am

Posted in Personal

Tagged with , ,

My Schedule for Adobe MAX 2007 Chicago

The Adobe MAX conference is in my backyard this year. The lack of travel expenses and the steep discount provided to attendees of 360|Flex made it possible for me to attend.

After registering, I chatted with other developers in my company to determine what sessions would be of greatest benefit to the teams using or investigating Flex. I shuffled those in with some sessions I really wanted to attend and the resulting schedule is below.

Data Visualization with Flex

Customizing the Flex Framework

Continuous Integration with Flex, FlexUnit, and Ant

Optimizing ActionScript 3.0 Performance

Inspire Session: The Dawning of the Age of Experience

What Makes a Design Seem Intuitive?

Pixel Perfect Precision

XD: Prototyping Rich Internet Applications with Fireworks CS3

XD: Adobe’s Approach to Application Design

Optimizing Flex Applications

Designers and Developers CAN Love Each Other

Creating New Flex Components

Flex on Rails

I look forward to seeing some of you there!