# Loading Text files

**URL:** https://forum.kirupa.com/t/loading-text-files/45010
**Category:** flash
**Created:** [March 10, 2004, 2:51am UTC](https://forum.kirupa.com/t/loading-text-files/45010 "2004-03-10T02:51:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Vo\_M](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Vo\_M](https://forum.kirupa.com/u/Vo_M)
#### Post date: [March 10, 2004, 2:51am UTC](https://forum.kirupa.com/t/loading-text-files/45010/1 "2004-03-10T02:51:23Z")

</div>

Hi, i was wondering why this doesn’t work for me and how could i make it work?

this is my coding so far

loadText = new LoadVars();  
loadText.load(“DailyNews\_March04.txt”);  
loadText.onLoad = function() {  
DailyNews.text = this.week1;  
};

and inside the DailyNews\_March04.txt there is…  
week1= something  
week2= something  
week3= something  
week4= something  
week5= something

and when i run the site, it says “undefined” in the dynamic text box. but the week1 works. But everything else (week2-5) gives me that undefined message.

is it possible to do that?
