PDA

View Full Version : Need Help on Dynamic Textfields Loading .txt files on MX plz


XpIkA
10-30-2002, 06:39 PM
Hi, i was lookin troughout lots of websites trying to solve a problem that i´ve got with Dynamic textfields loading text archives on MX
i was using all this lines of code but it didnt work when i upload to the server (the weird thing is locally it works just fine)

_root.loadVariables("01.txt","/");

or this other

loadVariablesNum("01.txt?Ran="+random(999), 0);

the text file is uploaded as an UNICODE file got all its variables fine (my_variable1=hello world&my_other_variable=help me escape from this !!) etc..etc..

the textfield is working with its vars (my_variable1, my_other_variable) correctly attached; and its works FINE on any computer (locally) but when its uploaded fails; i was trying to modify the path of the txtfile ("01.txt" "/01.txt") but it didnt work and i dont think its always necessary to put an URL when a file works with a relative path.

can u help me? plz i need the correct code to put in my flash file, and got another question, when i change the contents on the TXTfile and upload it again , theres a way that an user who got the previous txt file (and got it on the webcache),across my flashMX file uploads and update the content on the dynamic datafield or this is done dynamically by my SWF ?

PLZ HELP ME ASAAAAAAAAP
Thx

Regor Do Spika

Skakig
10-30-2002, 08:50 PM
Hey there,

is your .swf file and your .txt file in the same directory? Sounds like the problem to me...

tost
10-31-2002, 07:25 AM
got another question, when i change the contents on the TXTfile and upload it again , theres a way that an user who got the previous txt file (and got it on the webcache),across my flashMX file uploads and update the content on the dynamic datafield or this is done dynamically by my SWF ?


that's why u use this line
loadVariablesNum("01.txt?Ran="+random(999), 0);

this makes that you have a different url every time, so your txt file can't be cached

grtz
tost

friz2002
11-15-2002, 08:01 PM
Hi,
could someone explain me this part plz
loadVariablesNum("01.txt?Ran="+random(999), 0);
If I use the code, I get "Error opening URL ".../01.txt?Ran=23" in Flash and on server the text doesn't load
How do I use this correctly?