Looking at the JavaBean code
The example Flash application invokes the
methods of the following JavaBean:
testDate()
package com.samples;
import java.util.Date;
import java.io.Serializable;
import org.w3c.dom.Document;
public class FlashJavaBean
implements Serializable {
private String message;
private int count;
public FlashJavaBean() {
message = "Hello World From JavaBean";
count = 0;
}
public boolean testBoolean(boolean b) {
return b;
}
public Date testDate(Date d) {
return d;
}
public void setMessage(String message) {
this.message = "Hi " + message;
}
public String getMessage() {
count++;
return message + " (count=" + count + ")";
}
public int getCount() {
count++;
return count;
}
public void setCount(int count) {
this.count = count;
}
public Document testDocument(Document doc) {
return doc;
}
}
124
Chapter 7: Using Flash Remoting for Java
,
setMessage()
getMessage()
,
, and
testBoolean()
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