photo slide component for Flex AIR

For a project I recently worked on I needed to display images on the screen looking like (old fashioned) photo slides. It wasn’t that difficult especially since degrafa is so easy to use. I thought I’d go ahead and make the component available to other Flex/AIR developers to save some time. The component is easy to use and will re-size the image after it has loaded in order to save memory.

This movie requires Flash Player 9

After adding the source code to your project just add the component to a container and specify the URL to the image in the ‘imageSourceURL’ variable.

You’ll need the degrafa library in order for this to work. The example above uses Degrafa_Beta3_Flex3.swc.

The component also uses a spinner class which came from here.

In addition the image resizing utility class uses code from the clevr lib.

The image resizing routine could use some optimization but I’ll leave that as a fun exercise for you. ;) My code is licensed under the Creative Commons ver. 3. Refer to the other libraries for their licensing terms.
Please link to this post if you use the component. Enjoy!


About this entry