custom class mapping in Flash
"Michael" <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <001b01c4e67d$53488aa0$fe711a18@mikej75l1s63ed> |
If I've got a simple bean class defined in an AS2.0 class and a Java class, how does that bean get created on the Flash end after a remoting call?
For instance, in my Flash code I've got
function Result() {
this.onResult = function(myBean) {
}
}
var server = gw.getService("com.mysite.Remoting", new Result());
From the logging info it appears my Java class is in fact being serialized back to Flash, I just don't know how to reference it.
2004-12-20 04:56:12,359 INFO [org.openamf.io.AMFSerializer] - <Serializing Message, for more info turn on debug level>
2004-12-20 04:56:12,359 DEBUG [org.openamf.io.AMFSerializer] - <Writing object, class = class com.mysite.MyBean>
2004-12-20 04:56:12,359 DEBUG [org.openamf.io.AMFSerializer] - <customClassName : MyBean>
2004-12-20 04:56:12,359 DEBUG [org.openamf.io.AMFSerializer] - <invoking readMethod public java.lang.String com.mysite.MyBean.getName()>
2004-12-20 04:56:12,359 DEBUG [org.openamf.io.AMFSerializer] - <name = mike>
2004-12-20 04:56:12,359 DEBUG [org.openamf.io.AMFSerializer] - <invoking readMethod public int com.mysite.MyBean.getSize()>
2004-12-20 04:56:12,359 DEBUG [org.openamf.io.AMFSerializer] - <size = 1945686715>
Thanks