Is it possible to call an external script or program when creating a SWF file in Flash CS3?

Is there a way to call an external script or program from Flash CS3 every time it creates a SWF file? I would like to add subversion information using subwcrev - SVN keywords do not work because they are updated only after updating the version class file.

+3
source share
3 answers

I'm not sure what the JSFL capabilities are these days, but I would say that inside the Flash IDE this is your only bet. JSFL is a language for expanding the Flash IDE, but I'm not sure if you can.

SVN- SWF . , SVN-, SWF.

, Flash IDE, .

+3

Zárate, , JSFL - , , . flash , flash; ; build.bat build.jsfl

build.bat:

subwcrev . Version.svn.as Version.as
IF ERRORLEVEL 1 EXIT /B $ErrLev
flash.exe ./build.jsfl
IF ERRORLEVEL 1 EXIT /B $ErrLev

build.jsfl:

fl.openDocument("file:///movie.fla");
var documentDom = fl.getDocumentDOM();
documentDom.exportSWF("file:///movie.swf",true);
documentDom.close(false);
FLfile.remove("file:///Version.as");

build.bat ; build.bat, SWF- SVN. Flash IDE . " ", , Version.as.

, Zárate!

0

lessen I do it can it be complete because you too

var fileURL = fl.browseForFileURL ("open", "Select file");

fl.openDocument (fileURL);

var documentDom = fl.getDocumentDOM ();

documentDom.exportSWF ("movie.swf", true);

documentDom.close (false);

0
source

Source: https://habr.com/ru/post/1697033/


All Articles