Wow thanks! Your blog on how to create a publish profile is also very helpful
to me!
The save commands:
document.save();
document.saveAndCompact();
fl.saveDocument();
fl.saveDocumentAs();
They all assume that the file is already saved if not then it prompts a "Save
As" dialog with the file browser... The problem is I want to save the document
in a specific place with a specific name and not let the user pick the name and
where to save it. Am I missing something?
Again Thanks!
Chris
----- Original Message ----
From: Steven Sacks | BLITZ <[EMAIL PROTECTED]>
To: Flashcoders mailing list <[email protected]>
Sent: Friday, December 8, 2006 6:32:19 PM
Subject: RE: [Flashcoders] JSFL Saving a created document
You should download the JSFL documentation file.
fl8_extending.pdf
Not sure what the URL is but search Adobe's site and you'll find it like
I did.
Here's a taste of the functions that handle it.
Check my blog for the entire script where I am creating templates.
http://www.stevensacks.net/
var doc = fl.getDocumentDOM();
function saveFile(s) {
var fPath = getRelativePath() + s + ".fla";
fl.saveDocument(doc, fPath);
}
function getRelativePath() {
var pathArr = doc.path.split("\\");
pathArr.length--;
return("file:///" + pathArr.join("/") + "/");
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com