PDA

View Full Version : can you batch export flas to AVI?


flatface
08-10-2005, 03:02 PM
I have a collection of fla animations and I want to run javascript batches to publish them at various different settings. I need to create AVIs and quicktime movies.

to create quicktime movies I can run this javascript file:

//create filenames
var filepath = "file:///C:/FINAL ANIMATIONS/"
filenames = [filepath+"Anim1.fla",
filepath+"Anim3.fla"];

for (i=0; i<filenames.length;i++){

fl.openDocument(filenames[i]);

curr_doc = fl.getDocumentDOM();

// export as quicktime movies by loading in quicktime publish profile
fl.getDocumentDOM().importPublishProfile('file:///C:/Documents and Settings/Scott/Desktop/quicktime.xml');

//publish
curr_doc.publish();

curr_doc.close(false);
}
//fl.quit(true);


but is there a way of exporting as AVIs?

edit: i'm not being lazy I have 250 animations and I want avoid exporting for days!

hangalot
08-10-2005, 03:43 PM
i would imagine that flash cannot export in that format(or at least i have not seen the option)

flatface
08-10-2005, 05:23 PM
You can export in the IDE by going File/Export/Export Movie and choosing an .avi but I think you can only publish a movie from javascript and not export it. aaargh!

flatface
03-28-2007, 12:58 PM
found this old thread again and just in case anyone else is looking for an answer check this workaround out http://www.learningapi.com/blog/archives/000063.html

Queer
04-10-2007, 08:00 AM
I don't know need it still or not. I use for converting a lot of my flash to avi or mpeg Flash to Video Butch converter (http://www.geovid.com/Flash_to_Video_Batch_Converter/). With this program I can quickly convert a few my files and I don't lost my time.
Probably it will help.