How I do this in the script I am currently working on is put a loading image in by default and then change the image using the script later. Also when you use the MsgPlus.DownloadFile you have to put in another function for when it is complete. Here is an example of what you should do:
code:
function OnEvent_DownloadFileComplete(URL,OutFile,Success){
if(Success){//Check if the download worked properly
if(URL == "http://domain.com/path/to/image.png"){//Check that it was the file you wanted
Wnd.ImageElmt_SetImageFile("IdOfTheImageElement","\\"+OutFile);//Put the new image into the image element
}else{
if(URL == "http://domain.com/path/to/image.png"){
MsgPlus.DownloadFile(URL,"X:\\path\\where\\you\\want\\the\\image\\to\\go.png");//Redownload the file
}
}
}
I hope this helps, if you need more information about something then just ask. There are more complex ways of doing things but I think this is fairly nice code