Why are you doing r.result? since all you are returning is a string, the entire "result" is what you want. try doing just trace(result) and see what it does.
hybrid_ProgArtes - 11 Nov 2005 05:28 GMT
Problem Regarding Typecasting .Java class to .AS class
Hello, I am a J2EE Programmer and am also doing actionscripting in Flash MX,
specifically Remoting.
I already have tried Flash to "talk" to Java but I have some problems
regarding typecasting from a .java object to a .as custom class. Here are the
details:
I have my custom Person.as class in Flash and Person.java class in Java.
Another class in Flash called example2.as uses my Person.as as a variable.
example2.as has a getPerson() method which remotely calls Messenger.java's
getPerson() method. Messenger.java's getPerson() method returns an instance of
my Person.java class which has 2 properties in it,namely firstName and lastName
(both Strings). As i can see it in my NetDebugger panel in Flash, Java is
throwing to Flash the right object which is a Person.java class with right
properties in it, firstName and lastName.
The problem is that i cannot get the properties of Person.java when i typecast
it to Person.as class in Flash.
The following thing i've done before trying to typecast Person.java to
Person.as:
1) registered my Person.as class using Object.registerClass() in Flash
. . .this is done to make Flash understand that a Person.java class is to be
deserialized to Person.as class, that is what I think so. Please correct me if
i'm wrong. What i need to do is to correcly typecast Person.java class to
Person.as class so that i can extract the Person's properties, namely firstName
and lastName.
Anybody who knows this more is free to address his/her insight.
thanks a lot..
you may also email me at image.gif@gmail.com...thanks :)
hybrid_ProgArtes - 11 Nov 2005 05:29 GMT
Problem Regarding Typecasting .Java class to .AS class
Hello, I am a J2EE Programmer and am also doing actionscripting in Flash MX,
specifically Remoting.
I already have tried Flash to "talk" to Java but I have some problems
regarding typecasting from a .java object to a .as custom class. Here are the
details:
I have my custom Person.as class in Flash and Person.java class in Java.
Another class in Flash called example2.as uses my Person.as as a variable.
example2.as has a getPerson() method which remotely calls Messenger.java's
getPerson() method. Messenger.java's getPerson() method returns an instance of
my Person.java class which has 2 properties in it,namely firstName and lastName
(both Strings). As i can see it in my NetDebugger panel in Flash, Java is
throwing to Flash the right object which is a Person.java class with right
properties in it, firstName and lastName.
The problem is that i cannot get the properties of Person.java when i typecast
it to Person.as class in Flash.
The following thing i've done before trying to typecast Person.java to
Person.as:
1) registered my Person.as class using Object.registerClass() in Flash
. . .this is done to make Flash understand that a Person.java class is to be
deserialized to Person.as class, that is what I think so. Please correct me if
i'm wrong. What i need to do is to correcly typecast Person.java class to
Person.as class so that i can extract the Person's properties, namely firstName
and lastName.
Anybody who knows this more is free to address his/her insight.
thanks a lot..
you may also email me at image.gif@gmail.com...thanks :)
hybrid_ProgArtes - 11 Nov 2005 05:29 GMT
Problem Regarding Typecasting .Java class to .AS class
Hello, I am a J2EE Programmer and am also doing actionscripting in Flash MX,
specifically Remoting.
I already have tried Flash to "talk" to Java but I have some problems
regarding typecasting from a .java object to a .as custom class. Here are the
details:
I have my custom Person.as class in Flash and Person.java class in Java.
Another class in Flash called example2.as uses my Person.as as a variable.
example2.as has a getPerson() method which remotely calls Messenger.java's
getPerson() method. Messenger.java's getPerson() method returns an instance of
my Person.java class which has 2 properties in it,namely firstName and lastName
(both Strings). As i can see it in my NetDebugger panel in Flash, Java is
throwing to Flash the right object which is a Person.java class with right
properties in it, firstName and lastName.
The problem is that i cannot get the properties of Person.java when i typecast
it to Person.as class in Flash.
The following thing i've done before trying to typecast Person.java to
Person.as:
1) registered my Person.as class using Object.registerClass() in Flash
. . .this is done to make Flash understand that a Person.java class is to be
deserialized to Person.as class, that is what I think so. Please correct me if
i'm wrong. What i need to do is to correcly typecast Person.java class to
Person.as class so that i can extract the Person's properties, namely firstName
and lastName.
Anybody who knows this more is free to address his/her insight.
thanks a lot..
you may also email me at image.gif@gmail.com...thanks :) ;)