Archive for the 'Flex' Category

Automating Flex Compilation Using ANT

Sunday, June 15th, 2008

When we first started developing Flex applications for clients when the time would come to send the SWF over, I would build the application in Flex Builder and send off the generated SWF. This got the job done, but it imposed a few limitations since I was the only Flex developer in our office:

  • I was the only one that knew how to compile the application
  • If someone else wanted to try to compile the application, they’d have to install Flex Builder

After reading a blog post by Marc Hughes I realized it was time we put in place a more versatile environment for building Flex applications.

(more…)

Flash Player 10 (”Astro”) Prerelease and Flex SDK Build Available to Compile Flash Player 10 Content

Friday, May 16th, 2008

Yesterday Adobe announced a prerelease version of Flasy Player 10 which is code-named “Astro”. Users may install it and ensure their existing Flash content continues to function in Flash Player 10. Some demos of Flash Player 10 content are available as well to see the new features in action.

Some of the exciting new features include:

  1. the ability to render filters and effects made using the PixelBender toolkit
  2. dynamically manipulating sounds at the ByteArray level
  3. new Vector class for strongly-typed, more efficient arrays
  4. and plenty others

For users that wish to start compiling their content into Flash Player 10 and taking advantage of things like the new Drawing API, they may compile Flash Player 10 content using a nightly build of the Flex 3 SDK.

Also, Aaron West posted a great collection of links to articles and blogs related to the release.

Flex 4 “Gumbo” Planning Documents

Tuesday, May 6th, 2008

Since Adobe has opensourced the Flex SDK, the planning stages of Flex 4 (codenamed “Gumbo”) are being publicly documented. I’ve been watching this page since it went up on Adobe’s Open Source site and just noticed a change last night.

A working document has been added to describe the states syntax changes that are currently being drafted. The syntax changes document contains a few examples of how the code would differ from using states in Flex 2/3 and in Flex 4. Some of the new MXML-G tags can be seen in the examples.

Flex MVC Component Architecture Using OpenFlux

Saturday, April 5th, 2008

OpenFlux is an MVC (Model-view-controller) framework for developing Flex components.

Ben Stucki created the project after being inspired by a presentation Ely Greenfield gave at MAX Barcelona.

Videos of the Flex Roadmap session (courtesy of João Fernandes) are well worth the watch.

If you’re interested in playing with (or just learning more about) OpenFlux head on over and check out the source. I just added a wiki page explaining how to compile OpenFlux into a SWC if you need help getting started.

Happy Fluxing!

AIR 1.0 and Flex 3 Released

Monday, February 25th, 2008

Adobe just released Flex 3 and AIR 1.0. Congrats to both teams for doing a great job on these awesome products!

Presentation on AMF Using BlazeDS, AMFPHP, RubyAMF, and ColdFusion

Wednesday, February 6th, 2008

Tonight I gave my first presentation at the Capital Area Flex User Group about AMF. I ran over the history of AMF, the basics, and then walked through 4 examples showing how to use it from various backends:

I’ve added a Presentations section to our website where we will archive all presentations we give including any PowerPoint slides and source code.

I will try to post my code examples to the AMF Presentation page by tomorrow evening.

Adobe onAIR Bus Tour: Baltimore

Tuesday, August 21st, 2007

Yair and I went to the Baltimore stop of Adobe’s onAIR Bus Tour tonight.

Ryan Stewart

Ryan Stewart kicked off the keynote giving an introduction and overview to Adobe AIR. After briefly going over the background/web-history of the Flash player and the motivations behind the development of Adobe AIR, Ryan showcased some AIR applications:

He also highlighted that with the newly announced update to Flash Player 9 (codenamed “Moviestar”), Flash SWFs will be able to support H.264 video and HE-AAC audio. This will allow Quicktime movies to be played through SWFs and the Adobe Media Player.

Ryan then mentioned that the second public beta drop of AIR will be released during the MAX 2007 conference. Also, we were reminded of the AIR Developer Derby: a contest to see who can make the best AIR application. The grand prize is essentially a $100,000 travel coupon. There will also be five category winners that will win “The Ultimate Desktop Environment”, which is pretty much a bunch of beast hardware.

Mike Chambers

Next up was Mike Chambers demo’ing how to write a HelloWorld Flex-based AIR application. Pretty standard, but he went on to highlight the install experience for end-users that will be using AIR applications we developers will be creating. End-users will need the AIR runtime in order to install an AIR app, but developers will be able to place a Flash Badge on their website which will allow users without the AIR runtime to install both the runtime and their AIR application with only 4 clicks.

Mike finished off with pointing any developers that are starting to play around with AIR to the onAIR Bus APIs which have a ton of live data that can be used in an AIR app.

Kevin Hoyt

Kevin Hoyt was next to demo how to build an HTML-based AIR Application.

Kevin emphasized that Flex Builder is not necessary to create AIR applications. The Flex 3 SDK (which is freely downloadable) contains the AIR SDK as well, so you can compile and debug your AIR applications from the command line. Dreamweaver CS3 also has an AIR extension so if you’re a web developer that’s afraid of the command line you can go ahead and develop your HTML page in Dreamweaver and debug the application or package it as an AIR file directly within the comfort of Dreamweaver.

Script Bridging

Kevin next demo’d the script bridging capabilities of AIR, which lets JavaScript reach into the ActionScript world and invoke any methods in the Flash API (anything in the flash.* namespace). The reverse is also true (ActionScript reaching into the JavaScript world). This means you can have a purely HTML-based AIR application that can call methods in the Flash API by simply doing things like:

<script>
  var airFile = window.runtime.flash.filesystem.File;
  var desktop = airFile.desktopDirectory;
  var myFileInJS = new airFile(desktop.resolve("file_on_the_desktop.txt");
</script>

Here, myFileInJS is a JavaScript variable that references an ActionScript 3 class from the AIR SDK.

So “window.runtime.flash.* can let you directly use any Flash class from JavaScript. IMO the coolest thing Kevin covered is the ability augment the Flash packages you can use by simply script including a library.swf from any SWC to access those AS classes:

<script src="library.swf"></script>
<script>
  var encoder = runtime.com.adobe.images.PNGEncoder;
  encoder.encode( bitmapData )
</script>

In this example, encoder is the PNGEncoder from the as3corelib project, but the encoding is being done in JavaScript using AS classes! Very cool stuff. (FYI: a SWC is stored in a ZIP format, so you can just unzip a SWC file to access the library.swf inside of it)

Chafic Kazoun: Windowing in AIR

Windowing concepts Chafic covered/demo’d:

  • utility window
  • standard window
  • custom chrome transparent window
  • custom chrome where background is embedded in a SWF
  • custom window dispatching events and being listened to by another window

Ben Forta: AIR + ColdFusion

Highlights from Ben’s talk:

  • 50% of existing ColdFusion customers have upgraded to ColdFusion 8.
  • ColdFusion/Flex Extensions for Eclipse available at Adobe’s ColdFusion page.

Can generate a ColdFusion-backed Flex web app w/ literally no front-end coding; the extension has Master/Detail/Master_Detail and DB wizards to configure everything which then generates the CFCs, MXML components, and CSS stylesheets using all best practices.

This was possible before in ColdFusion 7, but now ColdFusion 8 can generate a ColdFusion-backed AJAX/HTML/CSS web app in the same manner.

From AIR you can load an HTML page from a ColdFusion backend and it will properly renders this AJAX/HTML/CSS generated content.

Certified Adobe Flex 2 Developer

Sunday, May 20th, 2007

Certified Flex 2 Developer

Yesterday I became certified as an Adobe Flex 2 Developer. It was easy to locate and schedule taking the test through Thomson Prometric.

The studying materials I used to prepare were:

I had already begun programming in ActionScript 3.0 prior to learning Flex 2, but for those new to ActionScript 3.0 the Programming ActionScript 3.0 documentation will get you up to speed.

SmartLogic Creates a Video Player for Searchles

Friday, March 9th, 2007

Searchles - a Web 2.0 social search engine - has just released Searchles TV! Searchles TV is a video player that lets you combine multiple videos in any order using multiple sources like YouTube, Google Video, MySpace, Blip.tv or Grouper and play them through one viewer either at Searchles or on your blog or website without the hassle of using editing software.

We at SmartLogic Solutions created the actual video player itself using Adobe Flash.

Below is an example of the video player in action:

Some highlights of the video player:

  • The volume slider is a lot more usable than YouTube’s volume slider.
  • The position seeker is also a lot more usable. You can actually drag it around and the picture updates in real-time.
  • You can play multiple videos in one player! Click the “menu” button on the player to view the playlist. You can click the little play/pause buttons to move to any video.

More information / related links: