This content has been marked as final. Show 9 replies
load it once. when loading is complete execute your other load statements into your other targets. only the first will be loaded via the internet. the others will be retrieved from the user's cache.
How do I ensure that I'mloading it from the cache and not from the original location?
Seems to me that if I use:
It will always at least try and load the image from "location".
Am I missing something?
you must use more coding to PREVENT subsequent loads from being retrieved from the user's cache. because you're not doing that, it WILL be retrieved from the user's cache. test it yourself to see.
I MUST be missing something plain:
When I look at the Activity windown in Safari, it says the image has been downloaded nine times, and I can see it's doing that on the page as well. If I reload the page and it calles the same image then I seem to be quick and safe, otherwise it's d'loaded nine times.
My personal logic says that if load an image into a movie clip, then everywhere I use that image the movie clip should already be loaded. That's the part that's stumping me, and it seems like it should be the most logical answer: Create a container, load it in once, reuse liberally.
what code are you using to ensure that loads subsequent to the first only occur AFTER loading of the first is complete?
OK, let me try and see.
I guess I just got stuck in my own logic.
you need to use the onLoadInit() method of the moviecliploader class or use standard preloader code if you're using loadMovie() or loadMovieNum().
OK, will try it later, but now I have hope.
Thanks So much!