Arrays: Code works as F6 not 7 or 8

I am trying to get the following code to work in Flash 8. It currently works when published for Flash 6, but not for 7 or 8.

Ideas?

import mx.transitions.Tween;
import mx.transitions.easing.*;
var set1:Array = new Array("img1", "img2", "img3", "img4", "img5", "img6", "img7");
var set2:Array = new Array("img7", "img6", "img5", "img1", "img3", "img4", "img2");
var set3:Array = new Array("img4", "img5", "img6", "img7", "img1", "img2", "img3");
var imgArray:Array = new Array();
var x:Number = -1;
function fadeUp() {
	if (x == 6) {
		x = -1;
	}
	x++;
	trace("This is the value of X  "+x);
	for (i=1; i<=3; i++) {
		imgArray[i-1] = this["set"+i][x];
		trace(imgArray);
		new Tween(this["box"+i][imgArray[i-1]], "_alpha", Strong.easeInOut, 0, 100, 15);
	}
	clearInterval(delayIn);
	delayOut = setInterval(fadeOutFix, 2000);
}
function fadeOut() {
	for (i=1; i<=3; i++) {
		trace(imgArray[i-1]);
		new Tween(this["box"+i][imgArray[i-1]], "_alpha", Strong.easeInOut, 100, 0, 45);
	}
	clearInterval(delayOut);
	delayIn = setInterval(fadeUpFix, 2000);
}
function fadeOutFix() {
	fadeOut();
}
function fadeupFix() {
	fadeUp();
}
fadeUp();