# Activity/Game Path Issue

**URL:** <https://forum.kirupa.com/t/activity-game-path-issue/253613>\
**Category:** flash\
**Created:** [March 3, 2008, 3:15pm UTC](https://forum.kirupa.com/t/activity-game-path-issue/253613 "2008-03-03T15:15:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zorn01](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@zorn01](https://forum.kirupa.com/u/zorn01)\
**Post date:** [March 3, 2008, 3:15pm UTC](https://forum.kirupa.com/t/activity-game-path-issue/253613/1 "2008-03-03T15:15:13Z")

</div>

I have a Trivia game that uses a .txt file to load the question and answers from.

This .swf game is placed inside a GUI.swf which is inside a player.swf. The player lives in a directory called player while all the .swfs live in the media directory all in the same root. The game shows but won’t load the .txt file.

When I play the game from the root of my machine it works fine, however when I play this game online it doesn’t seem to load the .txt file. Can anyone help me with this issue?

Here is my current code:

stop();  
if (this == \_root) {  
media\_path = “”;  
} else {  
media\_path = \_root.media;  
}  
questions\_text = “flashtrivia.txt”;  
// get the questions  
loadQuestions = new LoadVars();  
loadQuestions.load(\_root.media\_path+questions\_text);  
[//loadQuestions.load](https://loadQuestions.load)(“flashtrivia.txt”);//[COLOR=red]this was the local testing code. Now commented out the game still works locally[/COLOR]//  
loadQuestions.onLoad = initQuestions;
