Page 1 of 1

Image loader

Posted: Sat Dec 06, 2014 6:28 pm
by girish

Is there any image loader available? I tried this and didn't work.

function loadImage(imageNameArray){
var images={};

Code: Select all

 for(i=0;i (less than) imageArrayName;i++){
     images[i] = new Image();
     images[i].onLoad = function(){  
         PostImageLoaded();
     };
     var src = Apperyio.getImagePath(imageNameArray[i]);
     images[i].src = src;
 }

}

function PostImageLoaded(){
console.log("PostImageLoaded called"); //This line doesn't get executed at all, which means the onLoad doesnt work.
}


Image loader

Posted: Sun Dec 07, 2014 6:59 am
by Alena Prykhodko

Hello,

We do not have ready solution.
Please check whether there are any errors in console. This (http://devcenter.appery.io/documentat...) should help.