Andrea, it's a great relief to know I haven't gone completely mad!! I agree, it seems easier to put all the code inside the function .... it also seems clumsy and stupid :/ There has to be at least one sensible method (I hope!)
Here's wishing luck to both of us :) On Feb 13, 3:30 pm, andrea varnier <[EMAIL PROTECTED]> wrote: > I think it is not easy as it seems, and I'll try to explain why :) >>>> > you could put that code in a function, something like this: >>>> > the problem is that the variable will not be initialized until the load() > method has > completed its task. > so what you will get from the checkImages function is 'undefined'. > and that doesn't help much.