PDA

View Full Version : Error opening URL "file:///D|/Flash%20Lite%202.0/writeToFile.txt"


pilot1
05-18-2006, 02:56 PM
lv= new LoadVars ();
lv.a =1;
lv.sendAndLoad("writeToFile.txt", lv,"POST");

I got this meesage in the output window and nothing is written to the file.

Error opening URL "file:///D|/Flash%20Lite%202.0/writeToFile.txt"

mcmcom
05-18-2006, 03:09 PM
and do you have a text file in that location named writeToFile.txt?

it doesn't create a text file for you, it just writes to it.

pilot1
05-18-2006, 03:15 PM
yes I do.

mcmcom
05-18-2006, 03:18 PM
and its in the Flash Lite 2.0 directory, and its allowed to be written and executed? That error means that it cannot find the file, plain and simple. So double check the name and location.

pilot1
05-18-2006, 03:43 PM
every thin is okay with the file name and directory.

mcmcom
05-18-2006, 03:48 PM
well i dont know then.
that error clearly states that it cannot find the file.
Perhaps you should try moving it to the same folder as the .swf and just reference it by the filename and not the path and filename.

hth,
mcm

pilot1
05-18-2006, 03:52 PM
I tried to move the fla and the txt file to D:\
but still nothing is written to the file
can you think of any other way.

mcmcom
05-18-2006, 03:53 PM
can you post an example?
did you try using "GET" instead of "POST"

pilot1
05-18-2006, 03:55 PM
try it in your PC and see.

mcmcom
05-18-2006, 03:56 PM
is that a smart ass response?
this is free advice dude, if you dont want my help you dont need it.

pilot1
05-18-2006, 03:58 PM
WHEN I used GET insted:
Error opening URL "file:///D|/wrtittofile.txt?a=%20sjkashkdhasd%20ajhdask%20dhas das%20kdhadkjahda%20kdhadkhasdkahdka%20dkasd%20hka sdha"

pilot1
05-18-2006, 04:03 PM
Sorry but I Replied with:
try it in your PC and see.

before I SEE your post:
can you post an example?
did you try using "GET" instead of "POST"

anyway I just wanted to make sure I am doing the right thing.

pilot1
05-18-2006, 04:05 PM
Now the Error Message is gone but nothing is written to the file.

mcmcom
05-18-2006, 04:31 PM
no prob. im going to make you a sample .fla and post it here, give me 10 mins

mcmcom
05-18-2006, 04:40 PM
use php to help...
read this.
http://www.nunomira.com/blog/?page_id=239

pilot1
05-18-2006, 05:27 PM
So doest it mean No way flash By itself can write to a txt file