Hi Trevor,
I'm running LC Designer ES v8.1.1.silly.bunch.of.numbers. Are you
using the Designer that came with Acrobat Pro?
If so, here is an approach you can use to add scripts to the library:
-create a subform and name it something descriptive of the scripts;
-make the subform "invisible";
-in the "Hierarchy View", right-click on the subform and select
"Insert Script Object";
-give the new script object a name;
-place your JavaScript functions in that script object;
-in the "Design View", right-click on the subform and select "Add to
Library...";
-provide a good name and description;
-create a whole new form;
-drag the new library object onto the form;
-call the functions of that object's script object like so:
subformName.variables.scriptObjectName.functionName();
-you're done!
Note that, after dragging it onto the form, you may want to make the
library object "hidden" instead of "invisible".