Posts Tagged ‘AIR’

AIR / Flex – Drap & Drop (to Desktop)

Wednesday, February 25th, 2009

In order to drag one or more files from an AIR application to the desktop you have to handle just one event: DragEvent.

public function downloadFiles(event:DragEvent):void
{
   this.docs = List(event.target).selectedItems;

   var clip:Clipboard = new Clipboard();

   clip.setDataHandler(ClipboardFormats.FILE_LIST_FORMAT,
      getDownloadFiles);

   var dragOptions:NativeDragOptions = new NativeDragOptions();

   dragOptions.allowCopy = true;

   NativeDragManager.doDrag(event.currentTarget as InteractiveObject,
      clip, null, null, dragOptions);
}

Read the rest of this entry »

CMIS Explorer – Download

Thursday, February 12th, 2009

I’ve been working on the CMIS explorer on and off for the past few weeks. I think it is about time I made it available for download. I’d be interesting in hearing feedback on it.

Update: The project is now available on Google Code here.

Or, you can go straight for the download. The current download is for the CMIS 1.0 specification.

Update: I have fixed the code so that there are no more hard coded URLs. It has been tested in both Windows and Ubuntu against both local and remote repositories. Have fun.

Update: I just realized that there is still a hard coded URL in the source. That means it will only work against Alfresco running locally on port 8080. I’ll get that fixed up right away. I’ll be curious to see if it will work against another repository afterwards.

Read the rest of this entry »

Flex/AIR, CMIS, & Alfresco

Wednesday, January 28th, 2009

Intro

Last week I started building a CMIS browser with Adobe AIR.

I have built POCs with Flex before, but that was about it. Then, I downloaded thwirl and I remembered why I like AIR so much. It was easy to install, the UI is nice, and I imagine it was not too difficult to write. This is also a great example of why I like RESTful services too. I believe in the physical separation of the presentation tier, and working with RESTful services is a breeze. So is writing them for that matter. Twitter is a great example of building a social services platform and allowing for the development of third party applications to utilize it. It is a win, win situation. Perhaps ‘platform’ is the key word there. I’d like to shift from building web applications to building web platforms.

So, I decided to build a CMIS browser with AIR.

Update: The CMIS Explorer is now available for download. See this post.

Read the rest of this entry »