Insert | Script
Adds a Script to the selected Object or the current Frame. You can either add Actions, Events or Define Functions. The Script can then be edited in the Script Panel. See the Scripting section for more information about general scripting concepts.