hulk
09-16-2007, 01:57 PM
i want to make a thumbnail scroller therefore i need multiple images loaded.
loading the pictures is not a problem. but the problem is reaching height and width properties of images
here is my code(i need the property in red part):
function thumbLoad() {
for (i=0; i<len; i++) {
array[i]=new Loader();
array[i].x=index;
array[i].y=2;
index=index+4+array[i].width;
array[i].load(new URLRequest(thumb[i]));
Frame.addChild(array[i]);
//Frame is the movieclip i load the images on
}
}
loading the pictures is not a problem. but the problem is reaching height and width properties of images
here is my code(i need the property in red part):
function thumbLoad() {
for (i=0; i<len; i++) {
array[i]=new Loader();
array[i].x=index;
array[i].y=2;
index=index+4+array[i].width;
array[i].load(new URLRequest(thumb[i]));
Frame.addChild(array[i]);
//Frame is the movieclip i load the images on
}
}