Hi,
Your code is working as it is written so your problem is logical NOT technical. Here is my solution try if it works in your case.
var isCurrentImageLoaded = false;
for (var i = 0; i < 10; i++) {
var img = new Image();
isCurrentImageLoaded = false;
[login to view URL] = function () {
// Do all your image related processing here.
isCurrentImageLoaded = true;
}
[login to view URL] = function () {
// Log error and make flag to TRUE so that loop can go ahead.
isCurrentImageLoaded = true;
}
[login to view URL] = imggg[i];
while(!isCurrentImageLoaded){
// just wait until your current image loaded.
}
}
I understood your high level requirement. I am interested to work on this project. I have 7+ years experience in software development and customization using wide range of Microsoft technologies (C#, ASP.NET, MVC,WPF, Window form, Sql Databases, Azure, Sync framework etc.) and few open source like PHP,Java,JabbR. Since i have previous experience in such applications, so I think it will help in this project, if selected.
About my previous work, you can visit my profile to see feedback from previous employer. You can also see my recent work on MVC, Azure at [login to view URL] and [login to view URL]
Let me know, If you find me suitable for this project and share complete details. If you want more details, we can discuss over chat/ skype.
Regards,
Shashi Bhushan