How to convert event.result into userdefined object.
I am getting result from java class by using HttpService and the resultFormat is object.
I have a as class like UserDetails.
public class UserDetails
public function UserDetails()
private var _firstName:String;
private var _lastName:String;
private var _age:int;
Getters n setters here.......
Now i want to convert event.result into UserDetails object.
How can i do this.
Can any one help me regarding this.
Thanks in advance
1. You have to do it by hand.
2. You use a utility which introspects your target vo and creates an instance of it and the populates its values from the event.result (there was something like an ObjectTranslator google for it).
3. Generate the service with flash builder and you get it done under the hood.