girish
Posts: 0
Joined: Sat Aug 30, 2014 12:15 pm

Image loader

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.
}

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Image loader

Hello,

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

Return to “Issues”