Unlike ActionScript, JSFL does not have an include directive. I've started writing some useful jsfl classes, but having no include means a lot of copying and pasting and duplicated code. This is a bad thing.
I thought fl.runScript() would do it for me, but whatever functions I defined in the "included" file did not survive after the runScript call. Then I found a solution on MeidaSparkles. It turns out that global variables (variable defined without 'var') defined in the "included" jsfl do survive.
Here's my minor variation of the technique described in the article.
Thing.jsfl
IncludeTest.jsfl
