# Dynamic text from text file problem, can't find answer anywhere

**URL:** https://forum.kirupa.com/t/dynamic-text-from-text-file-problem-cant-find-answer-anywhere/28081
**Category:** flash
**Created:** [August 9, 2003, 9:18pm UTC](https://forum.kirupa.com/t/dynamic-text-from-text-file-problem-cant-find-answer-anywhere/28081 "2003-08-09T21:18:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![FXRinRXF](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@FXRinRXF](https://forum.kirupa.com/u/FXRinRXF)
#### Post date: [August 9, 2003, 9:18pm UTC](https://forum.kirupa.com/t/dynamic-text-from-text-file-problem-cant-find-answer-anywhere/28081/1 "2003-08-09T21:18:29Z")

</div>

My dilema is that I have several dynamic text boxes in my site, all have respective variables and txt files and I use loadVariablesNum("_the\_text\_file.txt_ ", 0); in the first frame followed by a _variable_ = \_root._variableText_ in the second frame to load the content from the text file to the variable. Now when i preview the swf on my machine all the text loads no problem, but when I have put both the swf and txt file online, using fetch, when the swf loads in the browser nothing shows up in any of the dynamic text boxes. I have done some rough debuging and it seems that the _variable_ which is supposed to be getting the content form the txt files, is coming up as equaling null. So thats the situation, also the text in the txt files is of the _variableText_ =html body…_text_ …body html sort. Pleeeeease help.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 9, 2003, 9:56pm UTC](https://forum.kirupa.com/t/dynamic-text-from-text-file-problem-cant-find-answer-anywhere/28081/2 "2003-08-09T21:56:24Z")

</div>

sounds like a speed issue: it works on your comp coz the loas is immediate, so the var gets populated, but not online coz when you try to use the var, the txtfile hasn’t finished loading in…my best guess anyway…might also be a Mac problem, lol (kiddin’)

at the end of your text, add &status=ok, then in the swf, run a (frame)loop to check if status == “ok” (means file is loaded) before accessing the var’s…or use loadVars & it’s methods to check for load.
