Hello All
I’m adding a twitter feed to an older flash site that use’s AS2, the code below works fine in AS3 but I need it translated into AS2 for obvious reasons…
I have 3 Dynamic Text Field Boxes in Flash with the instance names tweet_1 tweet_2 tweet_3 which show the 3 newest tweets…
Can anybody help me with this! I need the below translated into AS2 ?? :-/
Thank you in advance
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load(new URLRequest("twitter.php"));
myXMLLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void {
var myXML:XML=new XML(e.target.data);
tweet_1.text=myXML.status[0].text;
tweet_2.text=myXML.status[1].text;
tweet_3.text=myXML.status[2].text;
}