Loading an external image in your flash/flex project isn’t that difficult, but mostly there are too many steps involved just for showing a regular image. As a flashdeveloper I need to show a bunch of external images for almost all my projects. Therefore I decided to write something that does all the loading logic and displays it in a smart way. DynImage is a very simple but powerful image util with extensible functionality. It’s very lightweight and easy to use! You can even assign a preloader and create custom animations in a single line of code. Besides, cropping and scaling an image to fulfill your needs can be done in a breeze!
So how does it works?
addChild( new Image("image.jpg") );
Is it really that easy?
Yes it’s that easy. The example above loads the image in it’s original size.
Mostly you want to constrain an image to a certain bounding box. Play with the parameters below and watch the generated AS3 code!
A zip file of DynImage can be downloaded at github.com. The zip file contains the source code and working examples (Flash CS4/CS5 & pure AS3).
If you have suggestions or questions please let me know! Or fork me at Github.com.

