# AS3 to AS2 Translation ! Flash 8

**URL:** <https://forum.kirupa.com/t/as3-to-as2-translation-flash-8/303629>\
**Category:** Uncategorized\
**Created:** [January 23, 2010, 8:12pm UTC](https://forum.kirupa.com/t/as3-to-as2-translation-flash-8/303629 "2010-01-23T20:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musica](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@musica](https://forum.kirupa.com/u/musica)\
**Post date:** [January 23, 2010, 8:12pm UTC](https://forum.kirupa.com/t/as3-to-as2-translation-flash-8/303629/1 "2010-01-23T20:12:27Z")

</div>

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

```php
 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;
}

```
