Hello
I load the same image in Flex from different places - and the image always load from server again and again.
Is there any way to load image from browser cache?
Thanks
Vladimir
Hello
I load the same image in Flex from different places - and the image always load from server again and again.
Is there any way to load image from browser cache?
Thanks
Vladimir
If you know that you are going to be loading the image in 4 different places have you considered embedding the image inside the swf, then you wouldn't need to load it at all.
If that isn't an option then you could create a Dictionary of images, using the source of the image as the key. If a particular key hasn't been populated then you haven't loaded that image yet, and if it is populated then you can reference the image from the Dictionary (that way you only load it once).
Place the Dictionary inside a singlton class so that it can be made accessable from anywhere in your app.
Kenneth.