Trying to understand updateAfterEvent()

Hi Everybody,

I have the code below, with a function called by an Interval. I am trying to use the updateAfterEvent function, but I don’t know if I am doing it right. Could anyone please give some opinions about this.

Thanks a lot for your help.


volumeTimeReal_mc._alpha = 0;
//
function moving() {
	zoomedTable_mc._alpha = 0 - (0 - zoomedTable_mc._alpha) / 2;
	goodCurves_mc._alpha = 0 - (0 - goodCurves_mc._alpha) / 2;
	updateAfterEvent();
	if (zoomedTable_mc._alpha > 0 - 1 && zoomedTable_mc._alpha < 0 + 1 && goodCurves_mc._alpha > 0 - 1 && goodCurves_mc._alpha < 0 + 1) {
		zoomedTable_mc._alpha = 0;
		goodCurves_mc._alpha = 0;
		resultsTable_mc._y += (125 - resultsTable_mc._y) * 0.3;
		resultsTable_mc._xscale += (85 - resultsTable_mc._xscale) * 0.3;
		resultsTable_mc._yscale += (85 - resultsTable_mc._yscale) * 0.3;
		updateAfterEvent();
		if (resultsTable_mc._y > 125 - 1 && resultsTable_mc._y < 125 + 1) {
			resultsTable_mc.gotoAndStop("FET");
			volumeTimeReal_mc._alpha += 10;
			updateAfterEvent();
			if (volumeTimeReal_mc._alpha >= 100) {
				volumeTimeReal_mc._alpha = 100;
				clearInterval(intervalo);
			}
		}
	}
}
//
var intervalo = setInterval(moving, 50);