Ramblings

November 19, 2006

martijndevisser.com: ImageLoader class for Flash 8

Filed under: flash — michaelangela @ 6:46 am

martijndevisser.com: ImageLoader class for Flash 8:

This piece of code has been lying around for some time. I wrote it due to the fact that Flash 8 doesn?t smooth dynamically loaded images by default. This means that scaling and rotating any dynamically loaded image will make it look ?jagged?. The first (for as far as I know) to write Flash code to circumvent this issue was Master Tinic Uro himself; he is one of the engineers at Adobe working on the Flash Player. He wrote a handy function to load an image dynamically and then smooth it using a neat BitmapData / MovieClip trick I wrapped his idea and some extras (events from MovieClipLoader class are relayed and the PNG transpareny solution is also included) in a single class I dubbed ImageLoader (duh).

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: