Player APIs (BrightScript & Ja...
...
BrightScript
Language Reference

Intrinsic Objects

1min
in general, this manual uses the term “object” to refer to “brightscript components”, which are c or c++ components with interfaces and member functions that brightscript uses directly with the exception of some core objects ( roarray , roassociativearray , roint , romessageport , etc ), brightscript objects are platform specific you can create intrinsic objects in brightscript, but these objects are not brightscript components there is currently no way to create a brightscript component in brightscript or to create intrinsic objects that have interfaces (intrinsic objects can only contain member functions, properties, and other objects) a brightscript object is simply an roassociativearray when a member function is called from an associative array, a “this” pointer is set to “m”, and “m” is accessible inside the function code to access object keys a “constructor” in brightscript is simply a normal function at a global scope that creates an roassociativearray instance and fills in its member functions and properties see the “snake” game in the appendix for examples of creating intrinsic objects