Hi.
I'm trying to make a script, which display an image in a window. I have searched on the forum and it seems that the only way to do this is to download the file using
MsgPlus.DownloadFile and
OnEvent_DownloadFileComplete, but I can't figure out how to use those functions.
This is my script:
code:
DownloadComic = "http://www.explosm.net/db/files/Comics/Matt/ive-got-some-homemade-stuff-for-that-wound-of-yours-too.png";
function OnEvent_Initialize(MessengerStart)
{
MsgPlus.DownloadFile(DownloadComic);
ComicWnd = MsgPlus.CreateWnd("comic.xml", "TodaysComic");
}
function OnEvent_DownloadFileComplete(DownloadComic, OutFile, Success)
{
if(Succes)
{
MsgPlus.DisplayToast("Todays Comic", "Succes!");
}
else
{
MsgPlus.DisplayToast("Todays Comic", "Sorry, it didn't work.");
}
}
Anyone who can help me download the file, please?
Thanks in advance