01-04-2011 09:17 AM
Sorry for my english,and thanks to all that will read this message.
I'm new in playbook developing,I have search in the playbook api but i didn't find the answer to my problem.
Is there some class for the xml parser?
Thank you for the future answer and for your help.
Solved! Go to Solution.
01-04-2011 09:23 AM
XML is very easy.
var myxmlstring : String = '<root><tag>blue</tag><line color="green"></line></root>';
var xml : XML = new XML( myxmlstring );
From there, you can access tags like (from example above)
var value : String = xml.tag;
var color : String = xml.line@color;
There is good documentation on the XML class.
01-04-2011 10:36 AM - edited 01-04-2011 10:38 AM
Howdy, Badge, your english is fine
If you want to research the xml class a little more you can go here:
XML in actionscript 3 is simple due to dot notation, in fact easier than most other languages ( in my opinion ).
If you have any questions feel free to ask.