# Load .txt file problem

**URL:** <https://forum.kirupa.com/t/load-txt-file-problem/318297>\
**Category:** flash\
**Created:** [January 15, 2011, 11:12pm UTC](https://forum.kirupa.com/t/load-txt-file-problem/318297 "2011-01-15T23:12:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobertPallister](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@RobertPallister](https://forum.kirupa.com/u/RobertPallister)\
**Post date:** [January 15, 2011, 11:12pm UTC](https://forum.kirupa.com/t/load-txt-file-problem/318297/1 "2011-01-15T23:12:07Z")

</div>

Hey I am using the load command to load content from a .txt file on my server. I have it all working just find when I preview the swf file in flash and when I view the .swf in my web browser from my server. The problem when I view the .swf file on my php page (home.php) I only get undefined variables, it seems to not be able to connect to the .txt files only when I am viewing it on my php page. Again if I view the .swf file on my server using my web browser it works fine. What could be the problem?

Using Flash CS4  
Actionscript 2  
Dreamweaver CS4  
Google Chrome and Opera

```auto

//Get Title
firstTitle = new LoadVars();
firstTitle.onLoad = function(){
   story_title.text = this.content;
};
firstTitle.load("http://files.psu-tv.com/textfiles/homepanel/title5.txt");

//Get Text
secDescription = new LoadVars();
secDescription.onLoad = function(){
   description.text = this.content;
};
secDescription.load("http://files.psu-tv.com/textfiles/homepanel/description5.txt");

```

to view the website: [http://www.psu-tv.com/home.php](http://www.psu-tv.com/home.php)  
to view the swf: [http://files.psu-tv.com/flash/homepanel.swf](http://files.psu-tv.com/flash/homepanel.swf)
