View Full Version : get jsfl fileURI?
03-11-2007, 11:11 PM
i'm a newbie, but i cant find it on reference, how to get .jsfl file path (fileURI)?
03-12-2007, 12:44 AM
Usually we placed jsfl file in configuration folder..
to get configuration path... use this command:
fl.configURI. fl.configURI return string that specifies the full path for the local user's Configuration directory.
Below example coding shows how to run jsfl file which was placed in Commands folder at Configuration directory.
fl.runScript( fl.configURI + "Commands/filename.jsfl")
03-14-2007, 03:07 AM
tnx, yes i know that, but what if i dont want to .jsfl file to be in configuration folder?
i want to make a jsfl that opens fla that is in the same folder, but i dont want to copy those files to configuration folder.
07-15-2011, 08:54 PM
So this is an old thread but it came up early in the google results when I was looking for the answer to this question.
At least in Flash 11.5 (CS 5.5) you can use: fl.scriptURI
I don't know when this value was introduced.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.