Wednesday, May 03, 2006

Flash Command Line compiler Link

Today, for my project i was goggling for possiblity to run .mxp file from the Command Line and came across this which is so simple but havent used till now. bookMark for the future :)

http://www.bit-101.com/blog/?cat=3


OR the direct code

@echo off
echo // > tempPublish.jsfl
:start
echo %1
echo filename = "file:///%1"; >> tempPublish.jsfl
echo fl.openDocument(filename); >> tempPublish.jsfl
echo curr_doc = fl.getDocumentDOM(); >> tempPublish.jsfl
echo curr_doc.publish(); >> tempPublish.jsfl
echo curr_doc.close(false); >> tempPublish.jsfl
shift
if "%1" == "" goto end
goto start
:end
echo fl.quit(true); >> tempPublish.jsfl
start "C:/Program Files/Macromedia/Flash MX 2004/Flash.exe" tempPublish.jsfl

myfile1.fla myfile2.fla pathto/subdir/myfile3.fla

THANKS to http://www.bit-101.com/blog/?cat=3

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?