BrightScript support

Covers BrightScript functions and components restricted in SceneGraph component scripts

Several BrightScript functions and components cannot be used in
SceneGraph component scripts. Many of the BrightScript components that
cannot be used provide duplicate rendering functionality as SceneGraph
nodes, and cannot be used for that reason. You should use the equivalent
SceneGraph nodes instead, if available. Other BrightScript functions and
components can only be used in SceneGraph applications in a
Task node.

The following are the BrightScript functions and components that cannot or should not
be used in the component scripts of a SceneGraph application, with
additional information for many, such as:

  • SceneGraph nodes to use instead, if available
  • a function or component that can only be used in a Task node
BrightScriptNotes
ParseJson()Should only be used in a Task node
parseXml()Should only be used in a Task node
ReadAsciiFile()Should only be used in a Task node
roAppManagerUser interface component, cannot be used in a SceneGraph application
roAudioMetadataShould only be used in a Task node
roAudioPlayerCannot be used in a SceneGraph application
roAudioResourceCannot be used in a SceneGraph application
roChannelStoreCan only be used in a Task node or in the main BrightScript thread
roCompositorUser interface component, cannot be used in a SceneGraph application
roDatagramSocketCan only be used in a Task node
roFileSystemCan only be used in a Task node
roFontUse the SceneGraph Font node instead
roFontRegistryCannot be used in a SceneGraph application
roImageMetadataShould only be used in a Task node
roMessagePortThis can be used when the SceneGraph application is launched, but not within the application component scripts
roPinEntryScreenUse a SceneGraph PinPad instead
roRegionUser interface component, cannot be used in a SceneGraph application
roScreenUser interface component, cannot be used in a SceneGraph application
roSocketAddressCan only be used in a Task node
roSpriteUser interface component, cannot be used in a SceneGraph application
roStreamSocketCan only be used in a Task node
roSystemLogCannot be used in a SceneGraph application
roTextureManagerUser interface component, cannot be used in a SceneGraph application
roTextureRequestUser interface component, cannot be used in a SceneGraph application
roUrlTransferCan only be used in a Task node
roVideoPlayerUse the SceneGraph Video node instead

Did this page help you?