The
calculate()
package samples;
public class LoanInfo {
private double principal;
private int months;
private float rate;
private double monthlyPayment;
public LoanInfo() {
}
public LoanInfo(double principal, int months, float rate, double
monthlyPayment) {
this.principal=principal;
this.months=months;
this.rate=rate;
this.monthlyPayment=monthlyPayment;
}
public LoanInfo(double principal, int months, float rate, double
monthlyPayment, String message) {
this.principal=principal;
this.months=months;
this.rate=rate;
this.monthlyPayment=monthlyPayment;
}
public void setPrincipal(double principal) {
this.principal=principal;
}
public double getPrincipal() {
return principal;
}
public void setMonths(int months) {
this.months=months;
}
public int getMonths() {
return months;
}
public void setRate(float rate) {
this.rate=rate;
}
public float getRate() {
return rate;
}
public void setMonthlyPayment(double monthlyPayment) {
this.monthlyPayment=monthlyPayment;
}
public double getMonthlyPayment() {
return monthlyPayment;
}
}
138
Chapter 7: Using Flash Remoting for Java
function returns the following LoanInfo bean:
this.message=message;
Need help?
Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?
Questions and answers