|
Thanx to all that answered to my last
post!
Now I have that problem: I want to know when an
image in a DynImage object is completely downloaded.
This because I'm writing a Loading
function...
I have an array of Images objects and an array of
DynImage with a similar code:
In script start:
var images();
images[0]=new Image;
images[0].src="images\image1.jpg";
images[1]=new Image;
images[1].src="images\image2.jpg";
...
In DynAPI load event:
var dImages();
dImages[0]=new
DynImage(images[0]);
dImages[1]=new
DynImage(images[1]);
....
Obviously my code is muuuuch better, that's only
for easy understanding. All work fine, but it seems that the browser preload the
images in images() correctly, and then... it reload again the images in
DynImages!!! If I wait that all images() are complete I see the image
placeholders that loads... Why???
Ok, that's not a problem, if someone tell me
how to know if a DynImage object is complete!
Thanx in advance,
Henrik Sozzi. |
