| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2008
Posts: 11
|
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.. |
|
|
|
|
|
#2 |
|
six eyes
|
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) |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jul 2008
Posts: 11
|
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. |
|
|
|
|
|
#4 |
|
six eyes
|
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) |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Apr 2007
Posts: 3,242
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|