# Help with loading text files

**URL:** <https://forum.kirupa.com/t/help-with-loading-text-files/234908>\
**Category:** Uncategorized\
**Created:** [August 7, 2007, 4:43am UTC](https://forum.kirupa.com/t/help-with-loading-text-files/234908 "2007-08-07T04:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragonknight](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@Dragonknight](https://forum.kirupa.com/u/Dragonknight)\
**Post date:** [August 7, 2007, 4:43am UTC](https://forum.kirupa.com/t/help-with-loading-text-files/234908/1 "2007-08-07T04:43:18Z")

</div>

well my text file looks like this

```auto
reviewer0=Revin
&rating0=5
&movie0=test
&reviewmsg0=this is a cool yet unknown weird movie nobody know about ... that doesn't exist
reviewer1=Revin
&rating1=5
&movie1=test2
&reviewmsg1=this is also a cool yet unknown weird movie nobody know about ... that doesn't exist

```

heres the code…

```auto
lvLoader = new LoadVars();
var i:Number = 0;
lvLoader.onLoad = function(success) {
    if (success) {
        _root.reviewmsg = lvLoader.reviewmsg+i;
        _root.movie = lvLoader.movie+i;
        _root.rating = lvLoader.rating+i;
        _root.reviewer = lvLoader.reviewer+i;
        _root.avatart = lvLoader.reviewer+i;
        avatar.loadMovie(_root.avatart.split(i)+".jpg");
    } else {
        reviewmsg.text = "loading review";
        movie.text = "getting name";
        rating.text = "getting Rating";
        reviewer.text = "loading Reviewer";
        avatar.loadMovie("loading.jpg");
    }
};
lvLoader.load("moviereviews.txt");

```

i’m still pretty new to actionscript and i’m not sure what i’m doing wrong

i’ve attached a .fla file if you need it

avatar is 150x150

it would be greatly appreciated if you help me
