[Extendflash] path to folder containing FLA

Derek Vadneau extendflash_again at thunderunderground.com
Thu Nov 24 10:57:50 PST 2005


I haven't tried this for JSFL but it should work:

var path = docPath.substr(0,docPath.lastIndexOf('/'));

This will return the path without an ending /.


Derek Vadneau

----- Original Message ----- 
From: "Ingo Weiss" <ingo01 at ingoweiss.com>
To: <extendflash at flashguru.co.uk>
Sent: Thursday, November 24, 2005 10:29 AM
Subject: [Extendflash] path to folder containing FLA


Hi all,

after an unsuccessful struggle with regular expressions, I am turning to
the list for help with retrieving the path to the folder that contains
the FLA file of the current document. Basicalliy document.path minus
/document.name.

Thanks for any help!
Ingo




More information about the Extendflash mailing list