I scanned old posts but saw no reference to the following
problem/bug with Image/SWFLoader class.
The problem is that when I load different images into the
same Image instance the Image instance does not dispose of the old
bitmap data when the source changes. For example, I have an
application with an Image view that shows .jpg's whose names and
source are in a List. A user clicks an item in the list and the
image is loaded into the Image instance (source property is set
dynamically). What is completely unforgivable is that it does even
have the good sense to use the same bitmap data if I reload the
same image source.
Is there no way to get the Image class to flush its bitmap
The only solution I can think of is to try deleting and
re-instantiating the Image instance when the user selects a new
image to view.
(BTW, I tested the above in Flex 1.5 and, of course, the old
Loader class completely disposed of old content when loading new
content--just as it should in Flex 2.0!)