_lv = new LoadVars(); _lv.onLoad = function(){ myVar1 = this.imax; myVar2 = this["imageName"+1]; myVar3 = this.caption1; } _lv.load("newsFlash.txt");