Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > FlashLite / Portable Devices Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-18-2006, 02:56 PM   #1
pilot1
Registered User
 
Join Date: May 2006
Posts: 16
Default Error opening URL "file:///D|/Flash%20Lite%202.0/writeToFile.txt"

Code:
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"
pilot1 is offline   Reply With Quote
Old 05-18-2006, 03:09 PM   #2
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,523
Default

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.
__________________
www.mustcodemore.com
Adobe Certified Flash 8 Developer
mcmcom is offline   Reply With Quote
Old 05-18-2006, 03:15 PM   #3
pilot1
Registered User
 
Join Date: May 2006
Posts: 16
Default

yes I do.
pilot1 is offline   Reply With Quote
Old 05-18-2006, 03:18 PM   #4
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,523
Default

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.
__________________
www.mustcodemore.com
Adobe Certified Flash 8 Developer
mcmcom is offline   Reply With Quote
Old 05-18-2006, 03:43 PM   #5
pilot1
Registered User
 
Join Date: May 2006
Posts: 16
Default

every thin is okay with the file name and directory.
pilot1 is offline   Reply With Quote
Old 05-18-2006, 03:48 PM   #6
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,523
Default

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
__________________
www.mustcodemore.com
Adobe Certified Flash 8 Developer
mcmcom is offline   Reply With Quote
Old 05-18-2006, 03:52 PM   #7
pilot1
Registered User
 
Join Date: May 2006
Posts: 16
Default

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.
pilot1 is offline   Reply With Quote
Old 05-18-2006, 03:53 PM   #8
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,523
Default

can you post an example?
did you try using "GET" instead of "POST"
__________________
www.mustcodemore.com
Adobe Certified Flash 8 Developer
mcmcom is offline   Reply With Quote
Old 05-18-2006, 03:55 PM   #9
pilot1
Registered User
 
Join Date: May 2006
Posts: 16
Default

try it in your PC and see.
pilot1 is offline   Reply With Quote
Old 05-18-2006, 03:56 PM   #10
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,523
Default

is that a smart ass response?
this is free advice dude, if you dont want my help you dont need it.
__________________
www.mustcodemore.com
Adobe Certified Flash 8 Developer
mcmcom is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.