November 27, 2006

Flash Forever – BitmapCache

Filed under: flash — michaelangela @ 5:01 am

This does in fact seem to solve the dreaded “always reloading” image flash of the cell renderer. Bravo!

Flash Forever – BitmapCache:

A normal typical quick implementation of a CellRenderer that loads its associated image in it’s instance is illustrated on the left. On the right is an example of an implementation using the BitmapCache. Since the List component from MM reuses it’s cell instances for multiple items while the user scrolls, the Cell renderer instance will often need to change it’s content. When the content is text based this problem doesn’t surface, since the content is already available as it to be displayed. When using image data, you can either code something that manages loading your items bitmaps in a global stable place or you can easily solve your problems with the BitmapCache classe.


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: