AS3 to AS2 conversion
i have the following code from a tutorial:
ActionScript Code:
import flash.net.URLRequest; import flash.net.URLLoader; var i:URLLoader = new URLLoader(); i.addEventListener(Event.COMPLETE, loaded); i.load(new URLRequest("http://twitter.com/statuses/user_timeline.xml?screen_name="+UsrName)); function loaded(e:Event):void{ e.currentTarget.removeEventListener(Event.COMPLETE, loaded); var xml:XML = new XML (e.currentTarget.data); var list:XMLList = new XMLList(xml.status.text); box1.text = list[0] box2.text = list[1] box3.text = list[2] box4.text = list[3] box5.text = list[4] }
could someone please convert it to AS2 becuase i need it to be in AS2 as thats the AS i use
i know its a lot to ask but its quite urgent as i dont understand AS3
Original post by Adam_C