« You don't need an entire framework to use AJAX | Main| Quote of the day »

Flex yer Domino

Category domino
A few weeks ago I played with Adobe Flex for a couple hours. I soon became distracted by other things and never got around to posting about the results. But I remembered tonight that I hadn't, and figured I might as well.

Flex, in case you haven't already seen it, is a framework for building Flash RIA's. You define the application's interface and behavior in an XML file, and it generates a SWF for you. Since it's intended to be for full-fledged applications, not "movies", it's quite data-centric. And it happens to be very easy to use. The official IDE is based on Eclipse, and costs $499... can't imagine being able to justify that expense any time soon. But the good news is they have a free SDK. So you can just write the XML in your favorite text editor, run the command line script that comes with the SDK, and you're done.

In very short order, I was able to write a basic but fully functioning contact manager. This example stores its data in a Domino database. Domino's ReadViewEntries URL command returns a format that doesn't play particularly nice with Flex, so the database contains a page with an embedded view allowing a much more friendly XML format. You can download the example database and source XML here.

Comments

Gravatar Image1 - Nice app!

I've experimented a little with flex, but I haven't taken the time to fully immerse myself in the technology. I made a datagrid from an outline (?ReadEntries) / went through some examples.

One of the things I love is that they (Adobe) base the ActionScript on the ECMA-script standard. Makes it easy to get started, if you've done a bit of JavaScripting.

Gravatar Image2 - This is great! I'd love to see an expanded article on how you did this.
There is a 30 day trial version of Flex available on the Adobe site for those of us who are text editor phobic;
{ Link }

Gravatar Image3 - I noticed that too, Tommy. It's still a bit of an adjustment, but the core of the language is very familiar.

They also did a great job of keeping the XML format lean... the entire XML source for this example app is only 92 lines. That includes the markup that defines the interface as well as the CDATA-enclosed script that defines the behavior of each component. This is also the closest I've seen another framework get to the "single file" encapsulation we get with Domino. When you include references to images (like the ones used in the "action buttons", in this example), it compiles them into the SWF... so you don't have to upload them separately to the server. If implemented outside of Domino, you really only need three files: the HTML to embed the SWF, the SWF itself, and the JavaScript file that defines certain functions for handling cross-browser object embedding. Of course, it lacks the flexibility of being its own database, which is why integrating Flex with Domino seems like it could be a fairly powerful solution for RIA's.

Gravatar Image4 - Hi,

I work to port the domino view as a flex component.
Actually you can reach flat view and categorized view.
Here is a sample:
{ Link }

The source is here
{ Link }
It's under the french LGPL licence (Cecill-C)

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Contact Me

Hire Me

Elsewhere

What the Quote?

"You're like a lint brush."

Laura Tripcony

"Take that, Cube! Now you're a sphere."

Laura Tripcony

"NSD? What is that, some kind of protein shake?"

Steven Rodgers

"But... that would make me helium."

Adam Slagle

"That was bad, but I laughed, so your sin is done now."

Steven Rodgers

Apparel

Lotus Rocks

I write the code that makes the young girls cry

Current Terror Alert Level

Assorted Linkage

ClustrMap