...
When to Use BrightScript
BrightScript Required
These actions can only be done in BrightScriptBrightScript is required for these scenarios:
Player setup/configuration that must be done before a JavaScript application or presentation is loaded
Setting up logging level
Instantiating the HTML widget
Setting up network interfaces (on certain ports)
Certain file system operations
BrightAuthor:connected plugins
Autorun logging level and BOS logging (serial)
Any BrightScript object that doesn’t have a JavaScript alternative. A list of BrightScript objects and their JavaScript alternatives is here.
...