[flexcoders] [ AIR ] Create files on local system possible ?
Hello, I can read and write existing files on local system, but if I try to save (create) to a file that does non exist, I get the following error : Error #3003: File or directory does not exist. How to create a file on local system if it does not exists please ? Thank you in advance, Adnan
RE: [flexcoders] [ AIR ] Create files on local system possible ?
Can you post your code? Mike Chambers Sent by GoodLink (www.good.com) -Original Message- From: Adnan Doric [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 03:59 AM Pacific Standard Time To: flexcoders@yahoogroups.com Subject:[flexcoders] [ AIR ] Create files on local system possible ? Hello, I can read and write existing files on local system, but if I try to save (create) to a file that does non exist, I get the following error : Error #3003: File or directory does not exist. How to create a file on local system if it does not exists please ? Thank you in advance, Adnan
Re: [flexcoders] [ AIR ] Create files on local system possible ?
My first impulse is that this is an access issue. When you specify 'paths' the file you want to create, I believe it's a best practice to use the app-storage url. ( I'm going from memory, so you may have to look up the specific syntax ). Mike Chambers wrote: Can you post your code? Mike Chambers Sent by GoodLink (www.good.com) -Original Message- From: Adnan Doric [mailto:[EMAIL PROTECTED] mailto:astronaute%40gmail.com] Sent: Thursday, November 08, 2007 03:59 AM Pacific Standard Time To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] [ AIR ] Create files on local system possible ? Hello, I can read and write existing files on local system, but if I try to save (create) to a file that does non exist, I get the following error : Error #3003: File or directory does not exist. How to create a file on local system if it does not exists please ? Thank you in advance, Adnan -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] [ AIR ] Create files on local system possible ?
Thank you I solved the problem by using file.url (file:///...). I think there was an issue using nativepath I can't remember the right syntax I used (tried so many things), but reading from same path was possible. Adnan Mike Chambers wrote: Can you post your code? Mike Chambers Sent by GoodLink (www.good.com) -Original Message- From: Adnan Doric [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 03:59 AM Pacific Standard Time To: flexcoders@yahoogroups.com Subject: [flexcoders] [ AIR ] Create files on local system possible ? Hello, I can read and write existing files on local system, but if I try to save (create) to a file that does non exist, I get the following error : Error #3003: File or directory does not exist. How to create a file on local system if it does not exists please ? Thank you in advance, Adnan
Re: [flexcoders] [ AIR ] Create files on local system possible ?
Yes, in general, you should not use native path (as that wont work across operating system). If possible you should try and use some of the built in File APIs for creating the path to your files. mike chambers [EMAIL PROTECTED] On Nov 8, 2007, at 6:03 AM, Adnan Doric wrote: Thank you I solved the problem by using file.url (file:///...). I think there was an issue using nativepath I can't remember the right syntax I used (tried so many things), but reading from same path was possible. Adnan Mike Chambers wrote: Can you post your code? Mike Chambers Sent by GoodLink (www.good.com) -Original Message- From: Adnan Doric [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 03:59 AM Pacific Standard Time To: flexcoders@yahoogroups.com Subject:[flexcoders] [ AIR ] Create files on local system possible ? Hello, I can read and write existing files on local system, but if I try to save (create) to a file that does non exist, I get the following error : Error #3003: File or directory does not exist. How to create a file on local system if it does not exists please ? Thank you in advance, Adnan