Just a word of warning I'm a designer so my knowledge of Action Script is extremely limited.

I was given the task to create an animation that will run on a TV in the foyer of our building. In this I have put a Welcome message and linked a text file to it so that we can include a visitor's name. e.g Welcome John Smith from Sony.

This all works well but what I need to know how to do is make the SWF file automatically refresh/update every so often so that if someone edits the linked text file we don't have to close the SWF and reopen it. It may not be the SWF that needs refreshing since it's not actually playing inside a browser window, it may be that the dynamic text field needs refreshing.

This is the code I have used for the dynamic text field (thanks to someone on the WWW for sharing it).

var loader:URLLoader = new URLLoader(new URLRequest("name.txt"));
loader.addEventListener(Event.COMPLETE, completeHandler);

function completeHandler(event:Event):void {
var loadedText:URLLoader = URLLoader(event.target);
name_txt_area.htmlText = loadedText.data;

Any help would be greatly appreciated.