Re: [flexcoders] Re: Platform independent paths in AIR

2008-04-16 Thread Tom Chiverton
On Tuesday 15 Apr 2008, zdenekmikan wrote: > The file names are not unique, there can be files with the same names > in different folders. so parent folder+name is unique ? -- Tom Chiverton Helping to challengingly introduce value-added e-commerce on: http://thefalken.livejournal.com **

Re: [flexcoders] Re: Platform independent paths in AIR

2008-04-15 Thread Tom Chiverton
On Monday 14 Apr 2008, zdenekmikan wrote: > My app is working with hi-res images stored on LAN volume. The paths > to these images along with previews are stored in database. I need to > be able to access these hi-res images from Mac and Win - Are your images not uniquely named, or otherwise atta

Re: [flexcoders] Re: Platform independent paths in AIR

2008-04-14 Thread Jeffry Houser
After reading up on Uniform Naming Convention in Wikipedia (and some google links) it appears that Windows VS UNIX based use different slashes in the path names anyway, which would appear to defeat the purpose. Am I missing something? In a situation where you already have a "handle" to th

Re: [flexcoders] Re: Platform independent paths in AIR

2008-04-14 Thread Jeffry Houser
Once you get a handle to the file, via the File Class, you can use nativePath property to find an operating system specific path to the file: http://livedocs.adobe.com/apollo/1.0/aslr/flash/filesystem/File.html However, based on previous posts in this thread I was under the impression th

Re: [flexcoders] Re: Platform independent paths in AIR

2008-04-14 Thread Tom Chiverton
On Monday 14 Apr 2008, zdenekmikan wrote: > on PC. To be able to get access to these files from Mac AIR app I need > the name of server which is mapped to this O: letter. And to be able > to access files uploaded from Mac on PC I need to know the letter on > which the server with saved name is mapp

RE: [flexcoders] Re: Platform independent paths in AIR

2008-04-14 Thread Jim Hayes
I understand from your description that your problem is not that the path is represented in a cross platform way, But that the path *actually differs* according to how the network volume is mapped on mac/pc ? For instance, limit it to windows only and imagine the the network volume you are intere

RE: [flexcoders] Re: Platform independent paths in AIR

2008-04-14 Thread Jim Hayes
I'm not sure that flex or any other software is going to be able to help you with that one. I have a scenario where I need to identify resources on a DVD disk, it's necessary to loop though the system root drives and test each one for the presence of a file that I know to be on the DVD. I suspect t

Re: [flexcoders] Re: Platform independent paths in AIR

2008-04-12 Thread Jeffry Houser
I haven't had to deal with that yet. I guess you'll have to do some form of "if MAC use X path", "if PC, use Y Path". My impulse is that with hard coded paths your app will lose some portability. I also suspect that you may have security considerations when accessing a network share. zde