I built a XML driven portfolio for myself and I’ve got
a huge problem with it… I don’t know how to preload my
Everything is loaded with an XML , it’s all external
files… and I have a script that adds the images one after
another on the screen. I've managed to make a preloader for the
screenshot of the project (not the thumbnails). It works fine, it's
for the thumbnails I'm having problems.
The thumbnails are added one by one in the site, and I just
don't know how I can make them preload. With this code, it only
seems to preload one image, it turns them visible and the others
load without the preloader (which is not what I want)
Whenever I have a large number of images to load, I use my
own personal variation of David Stiller's MultiLoader class - a
great resource for this type of thing.
You can basically loop through all the images from your xml
file and add them to the MultiLoader and then listen for the event
that indicates that the group has finished loading if you want to
preload them all.