Automatic export all fla(as3) files to mp4
Hi,
In my project, I have multiple fla files and want to export all my files to mp4 automatically. Is there any way to export files automatically.
Hi,
In my project, I have multiple fla files and want to export all my files to mp4 automatically. Is there any way to export files automatically.
Hi.
This is script should be able to open up all FLAs within a folder, export all main timeline frames as a uncompressed .mov and then open up Adobe Media Encoder so you can convert the generated video files to .mp4.
JSFL:
function main()
{
var uri = fl.browseForFolderURL("select", "Select the folder containing the FLAs.");
var files = FLfile.listFolder(uri + "/*.fla", "Files.");
var total = files.length;
var dom, i, source;
try
{
for (i = 0; i < total; i++)
{
source = uri + "/" + files[i];
fl.openDocument(source);
dom = fl.getDocumentDOM();
dom.exportVideo(source.slice(0, -4) + ".mov", true, false, true, dom.timelines[0].frameCount);
dom.close(false);
}
}
catch(error)
{
fl.trace(files);
fl.trace(error);
fl.trace("___________");
}
}
main();
Please visit this link for more info about the exportVideo method so you can customize it according to your needs.
I hope this helps.
Regards,
JC
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.