# Loading text from text file need help

**URL:** <https://forum.kirupa.com/t/loading-text-from-text-file-need-help/314913>\
**Category:** Uncategorized\
**Created:** [October 12, 2010, 9:27am UTC](https://forum.kirupa.com/t/loading-text-from-text-file-need-help/314913 "2010-10-12T09:27:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adBuryD](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@adBuryD](https://forum.kirupa.com/u/adBuryD)\
**Post date:** [October 12, 2010, 9:27am UTC](https://forum.kirupa.com/t/loading-text-from-text-file-need-help/314913/1 "2010-10-12T09:27:32Z")

</div>

```auto
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.dataFormat=URLLoaderDataFormat.TEXT;

myTextLoader.addEventListener (Event.COMPLETE, onLoaded);

function onLoaded (e:Event):void
{
	for (var i:uint=1; i<3; i++)
	{
		var objr:String ='msg'+i.toString()
		trace (e.target.data.msg+(i.toString()));
		//trace(typeof(e.target.data.msg1))
	}
}

myTextLoader.load (new URLRequest("myText.txt"));

```

```php
msg1=Oman3D has many interesting tutorials1

&msg2=Oman3D has many interesting tutorials2

&msg3=Oman3D has many interesting tutorials3

 

```

how do i populate my array with these texts

thank you
