Infinite Array
  • experiments
  • tutorials
  • projects
  • resources
  • all posts

resources: February 2008 Archives

Smooth Image with Preloader, Drop Shadow, Smart Resizing in Flex

By ryan on February 11, 2008 9:42 PM | Permalink | Comments (1) | digg this | del.icio.us | reddit
By default, the Flex image component does not enable smoothing on scaled images, which makes them appear jagged.  Ben Longoria has written a great SmoothImage class that overrides the image component and sets smoothing to true.  I needed a bit more functionality out of it, so I have extended it a bit further.  I wanted:

  • Smart resizing which scales the image only if it won't fit in the application bounds
  • Drop shadow on the image
  • Centered preloader that displays while image is loading
I have written an updated class that expands upon the original SmoothImage, and includes these new features.
smoothimage.jpg

View the Example

View Source






Here is SmoothImageLoader.as


« resources: January 2008 | Main Index | Archives

Search

Subscribe to feed Infinite Array RSS feed

About this Archive

This page is a archive of entries in the resources category from February 2008.

resources: January 2008 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

Categories
  • experiments (2)

  • projects
  • resources (3)

  • reviews
  • tutorials (3)

resources: February 2008: Monthly Archives

  • February 2008 (1)
  • January 2008 (1)
  • November 2007 (1)
Copyright © 2008 Ryan Robinson
portfolio  |   resume  |   contact