using AS3 and Flash CS5
I have a messageboard Adobe Air desktop App with a URLLoader making a URLRequest for a ".txt" file every 2 minutes. or however long I set the time to look. The App loads the txt file into a dynamic text field.
var loader:URLLoader = new URLLoader(new URLRequest("https://my_text_file.txt"));
loader.addEventListener(Event.COMPLETE, completeHandler);
function completeHandler(event:Event):void {
var loadedText:URLLoader = URLLoader(event.target);
myText_txt.htmlText = loadedText.data;
}
Is it possible to have the URLRequest load the file only if its new? not every time?
then when the "new" file has been loaded fire
mainWindow.notifyUser(NotificationType.CRITICAL)
so the user knows there is a new message?
thanks in advance!!