Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-20-2008, 09:57 PM   #1
maskedMan
Obfuscated Coder
 
maskedMan's Avatar
 
Join Date: Apr 2008
Posts: 1,571
Question Opening a local network file using \\server\subfolder\filename notation?

I'm having a doozy of a time figuring out why I can't open a file on my network. First, I tried this:
ActionScript Code:
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:

ActionScript Code:
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?
__________________
http://www.scriptocalypse.com - It's not the end of the world. It's just Actionscript!

man.mask = mask_mc;

Last edited by maskedMan; 06-20-2008 at 10:21 PM.
maskedMan is offline   Reply With Quote
Old 06-25-2008, 10:53 PM   #2
maskedMan
Obfuscated Coder
 
maskedMan's Avatar
 
Join Date: Apr 2008
Posts: 1,571
Default

In case anyone else needs the answer, here it is:
ActionScript Code:
fl.openDocument('file://server/subdirectory/fla.fla');
__________________
http://www.scriptocalypse.com - It's not the end of the world. It's just Actionscript!

man.mask = mask_mc;
maskedMan is offline   Reply With Quote
Old 07-19-2008, 03:07 AM   #3
sweeth
Registered User
 
Join Date: Jul 2008
Posts: 3
Default

Thank you. useful.
sweeth is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open published file over network pdive Server-Side Scripting 2 05-15-2008 04:59 PM
displaying local file location vee ActionScript 3.0 0 04-28-2008 05:48 PM
Error opening .fla file? westy2005 Flash 8 General Questions 0 03-24-2007 01:55 AM
file reference download local file TimDiacon Projectors and CDs 0 01-05-2006 01:13 PM
Upload file from local PC to Server Brandon Rohde ActionScript 2.0 3 12-01-2005 03:11 PM


All times are GMT. The time now is 07:49 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.