Re: [Flashcoders] JSFL Saving a created document

2006-12-11 Thread Chris W. Paterson
Using Flash 8... on a Mac.
 
 


- Original Message 
From: Steven Sacks | BLITZ <[EMAIL PROTECTED]>
To: Flashcoders mailing list 
Sent: Monday, December 11, 2006 12:25:16 PM
Subject: RE: [Flashcoders] JSFL Saving a created document

Hm. That's odd because my script saves as many files as I need it to
with whatever path and filenames I want without prompting me.  I wonder
what's different.  Are you using Flash 7 or Flash 8?

___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] JSFL Saving a created document

2006-12-11 Thread Steven Sacks | BLITZ
Hm. That's odd because my script saves as many files as I need it to
with whatever path and filenames I want without prompting me.  I wonder
what's different.  Are you using Flash 7 or Flash 8?

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] JSFL Saving a created document

2006-12-09 Thread Chris W. Paterson
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 
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("/") + "/");
}
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] JSFL Saving a created document

2006-12-08 Thread Steven Sacks | BLITZ
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("/") + "/");
}
___
Flashcoders@chattyfig.figleaf.com
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