[Extendflash] relative filepath
James Peel
james at jamespeel.co.uk
Thu Jun 30 20:56:51 PDT 2005
Hi all, Hope this works!
I've been working on a little panel to get myself into the whole jsfl thing,
one of the things I'm doing is popping open a file browser, and then
grabbing the name of an .as file and inserting it into the actions layer:
var includeOption = MMExecute("fl.browseForFileURL(\"open\", \"Select .as
file to include\");");
if (includeOption.length > 0 && includeOption != null)
{
var file =
includeOption.substr(includeOption.lastIndexOf("/")+1);
var include = file.split("%20").join("
");
....etc etc
It grabs just the filename at the very end of the path and later on I add it
to the actions pane - this works fine, however, what I really want it to do
is give me a relative path to the file - is this possible?
Many thanks,
Jay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20050630/88896834/attachment.htm
More information about the Extendflash
mailing list