I want to get the path of the file (in which the script is run), with out the file name.
how to do that?
at present i have the following code:
var filename1=flash.documents[0].name;
fl.trace("this file name >>> "+filename1);
var filePath = flash.documents[0].path; // getting doc path
fl.trace("File path "+filePath);
and i get the following in output window
this file name >>> testing2.fla
File path E:\Flash JSFL est2 esting2.fla