wow that was fast. cool. i'm not clear on the use of addImage, if you have to use it before you start loading images, it seems you would always be able to take care of that by adding to the String urls parameter *before* you call ImageLoader. i don't see what advantage addImage gives you.
the feature i meant to request is specifying a path, which would then not need to be repeated for every String in urls array. e.g. imageLoader could have an optional 3rd parameter which is a path string that gets prepended to each filename. if you leave it out, it works exactly as in all previous versions.
Code:
// new way
String path = "http://processing.org/images/";
String[] files = { "alpha.gif", "beta.gif", "gamma.gif", "delta.gif" };
loader = new ImageLoader(this, files, path};
// old way still works
String[] files = { "http://processing.org/images/alpha.gif", "http://processing.org/images/beta.gif", "http://processing.org/images/gamma.gif", "http://processing.org/images/delta.gif" };
loader = new ImageLoader(this, files};
while we're at it, a function for loading image sequences would be really useful. e.g. image001.jpg, image002.jpg, without needing to write your own loop and string constructor. sorry, i'm being greedy now.
thanks again for your quick response and public code,
eric