First Frame:

// create LoadVars object stop(); var myLoadVars = new LoadVars(); var myArray = new Array(); var arraylength = 0;

// write what to do with LoadVars data when back from database myLoadVars.onLoad = function(success) {

	if (success) {
		arraylength = this.total;
		for (var i = 0; i < this.total; i++) {
			myArray[i] = this["micval"+ i];
			trace("myArray is" + myArray[i]);

		}
		gotoAndPlay(2);
	} else {
		trace("failed");
	}

}

// request data from database via php script myLoadVars.load("http://itp.nyu.edu/~gak217/fall05/sensor/final/GetLevels.php");

Second Frame:

stop(); var index = 0; var myAlpha = 0; trace("arraylength is" + arraylength); this.onEnterFrame = function(){

	if(index<arraylength){
		trace("arraylength is" + arraylength);
		trace("myAlpha is" + myArray[index]);
		myAlpha = myArray[index];
		alpha_text.text = myArray[index];
		redcircle_mc._alpha = (myAlpha * 100);
		index++;
	}

}