I’ve used JSFL a couple of times, but never really sat down to learn it, so I thought I’d post this little conundrum incase anyone starting to use it comes across it. We’ve just had a call from a friend wondering why his code was producing an error when he was sure there was no error in his code – indeed there wasn’t. The code was a simple one line copy and paste from the Help files, selecting an item from the library.
One thing I found with JSFL is that the commands are cached when they are sitting in your Commands folder. So if you are running them by either double clicking the JSFL file, or going Commands > Run Command and selecting the file you are fine. But beware that if you make any changes to a file once it has found its way into your Commands menu, you’ll have to restart Flash before the changes take effect. As a quick tip I’d probably say when writing and testing the commands, run them from file, and move them into the Commands folder when final.