PrimalScript Publishing

In PrimalScript 3.1, you can hit F7 to test your movie. Some editors use flush to communicate with Flash. Primalscript actually executes a JSFL file. It’s Program Files/Sapien/PrimalScript/JSFLs/compile.jsfl

Here’s what it contains:

fl.outputPanel.clear();
fl.getDocumentDOM().testMovie();

Pretty simple. But even better is that you can really simply add things to it. When I used to code solely on the timeline in the Flash IDE, whenever I tested I would save, then test. Now that I’m back and forth between Flash and PrimalScript, and often testing via F7 in PrimalScript, I often forget to save the fla for long periods of time. (PrimalScript automatically saves the AS file before testing.) Occasionally, Flash MX 2004 has been known to crash (ahem), losing what I didn’t save in the fla. So, I just added one line to the compile.jsfl file, so it looks like this:

fl.outputPanel.clear();
fl.getDocumentDOM().save();
fl.getDocumentDOM().testMovie();

Voila. Now, hitting F7 in PrimalScript saves the current fla and then tests it. Sweet.

This entry was posted in Flash. Bookmark the permalink.

One Response to PrimalScript Publishing

  1. [m] says:

    I’ve always known that jsfl is made from sweet stuff, and this is just the icing on the cake.

    Sweet.

Comments are closed.