hi, i use this example code:
all_images = ['/images/myImage.png', '/images/myImage2.gif'];
var myImages = new Asset.images(all_images, {
onComplete: function(){
alert('All images loaded!');
}
});
it's all right.
Why this code not function if i use this definition of array
"all_images"?
var all_pics = $$('#pics_hotel img');
var all_images = new Array();
all_pics.each(function(element) {
all_images.push(element.get('src'));
});
