function showContent(){ _global.str_new = this.str1; } var c = new LoadVars(); c.onLoad = showContent; c.load("file.txt"); stop();