Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-03-2009, 07:35 PM   #1
skeetm0n
Registered User
 
Join Date: Jul 2008
Posts: 11
Default Mass Compile of .fla files

I work on a project where they have a directory which contains ~1k other directories. Within each of those directories there are about ~2-8 .fla files with the corresponding compiled .swf files.

The problem is that all of these .fla/swf files are at 12fps and need to be 24 fps. Is there a way to mass change (via script) the fps within each of the .fla's and compile? Or alternatively, is there a way to hex edit all of the .swf files into thinking they are really 24 fps?

Last edited by skeetm0n; 11-03-2009 at 07:46 PM..
skeetm0n is offline   Reply With Quote
Old 11-03-2009, 07:59 PM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,763
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

JSFL can do it.
http://help.adobe.com/en_US/Flash/10...4f3f-7fe8.html

And you could technically edit the existing files without republishing, but if they're compressed it would mean decompressing a portion of the file, changing the framerate byte, then recompressing. If you have Flash, it'd be easier to just re-publish. A script shouldn't take too long to write and publishing would only take... well it may take a while but it won't kill ya.
__________________
(6)
senocular is online now   Reply With Quote
Old 11-04-2009, 02:25 AM   #3
skeetm0n
Registered User
 
Join Date: Jul 2008
Posts: 11
Default

I had no idea what jsfl was before your post, but after a few hours of research I am SUPER excited about it. How have I gone so long w/o knowing about this?!!?

I found there are very few resources and documentation online to help one learn this. I also noticed that using the history panel is not very effective, there are some things you can do with code that the history panel wont let you copy: such as opening a file.
skeetm0n is offline   Reply With Quote
Old 11-04-2009, 01:47 PM   #4
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,763
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

This will get you started
Code:
// options
var folderURI = ''; // if not defined, you'll be prompted
var recursive = false; // true if you want to run through sub folders

// call
main();

function main(){
	if (!folderURI){
		folderURI = getFolderURIFromUser();
	}
	processFolder(folderURI);
}
function getFolderURIFromUser(){
	return fl.browseForFolderURL("Select folder to process");
}
function processFolder(folderURI){
	
	if (folderURI){
		var files = FLfile.listFolder(folderURI, "files");
		var file, dom;
		var i = files.length;
		while(i--){
			file = files[i];
			if (file.slice(-4).toLowerCase() == ".fla"){
				fl.publishDocument(folderURI +"/"+ file);
			}
		}
		
		if (recursive){
			files = FLfile.listFolder(folderURI, "directories");
			i = files.length;
			while(i--){
				processFolder(folderURI +"/"+ files[i]);
			}
		}
	}
}
__________________
(6)
senocular is online now   Reply With Quote
Old 11-04-2009, 02:33 PM   #5
asf8
Senior Member
 
Join Date: Apr 2007
Posts: 3,242
Default Batch Pubish FLA Files - JSFL

Here are some more also...
http://www.actionscript.org/forums/s...46&postcount=4

Not sure if they are still relevant to the newer versions of Flash
asf8 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.