Data loading not changing

3 dynamic text fields (caption, caption1 and caption2) on stage loading from XML. Data loads fine. However buttons not changing data on click.
AS


var x:XML = new XML();
x.ignoreWhite = true;
var e:Array = new Array();
var e1:Array = new Array();
var e2:Array = new Array();
var whatOn:Number;
x.onLoad = function() {
 var p:Array = this.firstChild.childNodes;
 for(i=0;i<p.length;i++) {
  e.push(p*.attributes.english);
  e1.push(p*.attributes.english1);
  e2.push(p*.attributes.english2);
 }
 caption.text = e[0];
 caption1.text = e1[0];
 caption2.text = e2[0];
 whatOn = 0;
}
x.load("text.xml");
p.onRelease = function() {
 if(whatOn > 0) {
  whatOn--;
  caption.text = e[whatOn];
  caption1.text = e1[whatOn];
  caption2.text = e2[whatOn];
 }
}
n.onRelease = function() {
 if(whatOn < p.length-1) {
  whatOn++;
  caption.text = e[whatOn];
  caption1.text = e1[whatOn];
  caption2.text = e2[whatOn];
 }
}

Data loads however buttons arent changing to next data provided by XML. Anyone got any ideas.
Thanks
MT