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

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

Categories:

  • experiments,
  • resources

Tags:

  • custom actionscript 3 component,
  • Flex Image Component,
  • Smooth Image Preloader,
  • SmoothImage

1 Comments

ajay said:

can i use flex with visual studio 2008 and how

April 5, 2008 9:11 PM

Leave a comment

Search

Subscribe to feed Infinite Array RSS feed

About this Entry

This page contains a single entry by ryan published on February 11, 2008 9:42 PM.

Yahoo Pipes + Flex Tutorial was the previous entry in this blog.

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

Copyright © 2008 Ryan Robinson
portfolio  |   resume  |   contact