Hi there,
currently I'm translating an app from C# into ActionScript (Silverlight to Flex) and I need to serialize some XML content in ActionScript.
Now, unfortunately I need the variables to have an other name than the nodes in the XML file. I tried a workaround with getters and setters. It worked for setting the variables, but I failed at the getters, because when you make the variable private the native AS3 'SimpleXMLEncoder' ignores it.
The best solution would be, if I could give aliases to the variables. Thats the way it worked in C#. Just like this:
[DataMember(Name = "some")]
public someVariable Type { get; set; }
Is there any way to do something similar in ActionScript? I only found this one, which is for classes:
[RemoteClass(alias="user")]
I hope I described my first question well, and my english is ok. Thank you. :)