Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

URLRequest with unmapped network drive

New Here ,
Sep 02, 2013 Sep 02, 2013

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

TOPICS
ActionScript
392
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Sep 03, 2013 Sep 03, 2013
LATEST

Simply use the IP of the server:

Example:

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines