in your component xml you can include scripts as such:
<script type="text/brightscript" uri="pkg:/source/utils.brs" />
any functions defined in the included script will only work within the scope of that component so it can get included in multiple components as long as there are no function name conflicts.
"<script>" wrote:I'll take a guess doco is wrong on that...
uri | optional | A string specifying an external file that contains script code associated with the component. This file must be located in the components directory of the application, and have the .brs extension for BrightScript code.