PDA

View Full Version : Opening a local network file using \\server\subfolder\filename notation?


maskedMan
06-20-2008, 09:57 PM
I'm having a doozy of a time figuring out why I can't open a file on my network. First, I tried this:

var uri = '\\servername\subfolder\filename.fla';
fl.openDocument(uri)


this seemed not to work because the \ characters were acting like escapes in my string, so I tried this instead:


var uri = '\\\\servername\\subfolder\\filename.fla';
fl.openDocument(uri)


This gives me the correct string, but then when I attempt to use fl.openDocument(uri) I get the following error:

"Invalid URI: \\servername\subfolder\filename.fla"

I've checked to see that typing this filename into a browser works, and it opens the document in flash. What could be going wrong with my filename in this jsfl command?

maskedMan
06-25-2008, 10:53 PM
In case anyone else needs the answer, here it is:

fl.openDocument('file://server/subdirectory/fla.fla');

sweeth
07-19-2008, 03:07 AM
Thank you. useful.