Jump to content
Search Community

check if image is loaded

dutzzzu test
Moderator Tag

Recommended Posts

Hi,

 

I have an array of images which i want to load in an application at different moments in time. The thing is that they might already be loaded, so i want to check if they are loaded already to not use a lot of memory.

 

Can you please tell me how i can check if a image is loaded taking into account that i have the image's url ?

 

Thank you !

Link to comment
Share on other sites

By the way, ImageLoader automatically does this sort of checking for you. If it finds an already-loaded ImageLoader with a duplicate url, it will simply copy that ImageLoader's BitmapData into a new Bitmap and finish immediately. Very minimal memory usage (since it is pointing to the same BitmapData) and it doesn't even request anything from the web/server/browser. Just make sure you're using the latest version of LoaderMax because that feature was added back in October 2011.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...