PDA

View Full Version : a (most likely) simple problem with loading text files...


Maebius
09-05-2002, 03:30 PM
Greetings all!

I know it's cliche, but....I'm fairly new to Web design and Flash, and am attempting to create an interactive website for my home business.

As a trial/tutorial, I made a very simple *.FLA with three static text fields (as labels) and three dynamic text fields (for the variables).

I have a web-form that allows me to enter the text from the three fields (name, evolution, location) and it updates a small text file in the same directory.

The webform calls a simple PHP script which *DOES* update the text file in the format:
&NAME=Nate
&EVOLUTION=42
&LOCATION=Limbo

Within the Flash script, there is only a single frame with the acrionscript:
loadVariablesNum ("test.txt", 0, "GET");

The problem, is that when I run the flash file online, it does not list the variable output. When I download the text file to my local hard-drive, and run the SWF file, it shows the data nicely.

If anyone is interested, take a peek at the following URL, wherre you can see the files I'm speaking about.
www.everthorn.net\Pond\data\

The initial web-form is filetest1.html
The webpage that holds the Flash is filetest.html
Everything else should be obvious.

tg
09-05-2002, 07:00 PM
works for me.

Maebius
09-05-2002, 07:10 PM
Hmm. this is truly strange....

I just tried it again, and it does not show up...
The flash file only shows the labels (static text) for the fields.

On a whim, I rebooted, cleaned out all Temporary Internet Files (in case IE was caching the page), cleared my history, and otherwise tried to remove all traces of past internet use.

Then I attempted to load the page up with a URL containing a bogus "?s=gt435456abgh65" at the end, just to fool the browser into reloading the page from scratch....

Nothing.

Since you can see the results, I'll assume my logic is not bad and everything works, but would anyone know how to explain the fact *I* personally can not test this out? If all else fails, I am going to try another PC tonight at a friend's house, jsut to rule out my computer......

tg
09-09-2002, 02:37 PM
gotta be your computer, still works for me.
pc, win2000, flash player 6,0,47,0

Maebius
09-09-2002, 03:06 PM
ARGH! It is my computer....

I tested out at the local library and then at afriend's house, and everything seems to work great.
My PC. (WinNT, ie5.5).

Oh well. I'll work through it.

tg
09-09-2002, 09:33 PM
check your player version, and test it in a browser, not the authoring environment.