Tuesday, November 25, 2008

Total Sums and Output code

on(release) {
_root.calculator.outputBox = "";

TotalSum = 0;

for (var i:Number = 0; i< MySums.length; i++) {

_root.calculator.outputBox += MySums[i] + newline;
TotalSum += MySums[i];
trace(TotalSum);
}
_root.calculator.outputBox += "---" + newline;
_root.calculator.outputBox += TotalSum;

}

No comments: