Jump to content
Search Community

imageLoader and bitmap dispose

Colir test
Moderator Tag

Recommended Posts

Hi,

i've a little question about loadermax and bitmap dispose.

 

i create an image galerie

 

I load an image width an Imageloader instance with cahce (noCache:false).

when i change to another project, i clear all my previous image with bitmapdata.dispose()

 

this work well, but when i came back on a previous project my image doesn't appear, as loaderImage doesn't recreate a bitmapData instance...

 

any idea or solution ?

 

thanks

Link to comment
Share on other sites

i'm having difficulty following your question.

 

i would suggest instead of calling BitmapData.dispose() that you use the LoaderCore's unload() method

 

http://www.greensock.com/as/docs/tween/ ... ml#unload()

 

it sounds like you are bypassing the ImageLoaders built-in mechanisms for getting rid of content and thus the ImageLoader isn't aware that the bitmapdata has been removed.

 

i think you want to unload() and load() your ImageLoaders and not dispose of the bitmap data. I could be wrong.

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...