Skip to main content

Posts

Showing posts with the label binary-data

ActionScript BEncoded XML file. Decoding same way as Flash:URLLoader in PHP

Hope topic is relevant :) I have a class in Action script that loads and interpretes an XML File. What I want to do is to be able to decode this file using PHP (Probably some kind of Binary Decoding) private static function interpreteXML(j:Event):void { ....... some var defined here..... var event:Event = j; var loader:URLLoader = (event.target as URLLoader); try { xml = new cXML(); xml.SetXMLString(String(loader.data)); } I'm looking for a function/class that would be able to decode XML in same way as URLLoader From what I saw in Flash AS3 Docs, URLLoader have abbility to load Binary encoded data and decode it. That's why I look for a PHP version of this method to be able to interprete files on PHP level.