Skip to main content
Participant
September 3, 2013
Question

URLRequest with unmapped network drive

  • September 3, 2013
  • 1 reply
  • 419 views

Hello all,

I'm using Flash CS6 outputting to AIR to work on a shared network (not internet). I am trying to reference some files on a shared office server drive. I would usually just reference the mapped drive G:... but due to the amount of people using this, I cannot guarantee that everyone will name the server drive using the same letter. So, I need to reference using the long server name.


Trying but failing (Main question is how to properly write this... if possible)

Code:

var req:URLLoader = new URLLoader(new URLRequest("//serverName/rest-of-path-here"));

instead of (which works for properly mapped):

Code:
var req:URLLoader = new URLLoader(new URLRequest("G:/rest-of-path-here"));

I get the following error:


Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: //serverName/rest-of-path-here


Thanks in advance!

-Jake

This topic has been closed for replies.

1 reply

Inspiring
September 3, 2013

Simply use the IP of the server:

Example:

new URLRequest("http://192.168.20.60/")