Posted on November 12, 2009
Holy Shit what that… I will load a XML from the FileSystem with FileStream… So i get from FileStream with:
myFileStream.byteAvilable;
uint convert to:
var myXML : XML = XML(myFileStream.readUTFBytes(myFileStream.bytesAvailable));
that’s what saved in myXML is fucking bullshit!!!!!!!!! There was only elements and i cant’t parse it… It’s BULLSHIT!!!!
So what must i do???
var xmlString : String = String(_contentLoader.readUTFBytes(_contentLoader.bytesAvailable));
var xmlDocument : XMLDocument = new XMLDocument(xmlString);
var decoder : SimpleXMLDecoder = new SimpleXMLDecoder(true);
var xmlObj : Object = decoder.decodeXML(xmlDocument);
and in xmlObj is nothing with XMLList and annother nice things… FUCK!!! I will get a XML when i load a XML!!!
@ADOBE PLS. FIX IT!!!!!!