The actionscript goes on frame 2 of the actions layer .It calcuates the mortage
repayment. I don't want to confuse matters with explaining how the mortgage
calculations work. I'm not sure that I understand it myself!!
//calculate interest rate applicable to period
var periodicInterestRate = floInterest/intRepayments/100;
//length in periods
var TotPeriods = intTerm * intRepayments;
//periodic interest
var PeriodicInterest = intPrincipal * periodicInterestRate;
var base = 1;
var mbase = 1 + periodicInterestRate;
for (var i=0; i
base = base * mbase;
}