Skip to main content

core.scriptFile

since 0.9.6

Description

AlphaTab needs to know the full URL to the script file it is contained in to launch the web workers. AlphaTab will do its best to auto-detect this path but in case it fails, this setting can be used to explicitly define it. Altenatively also a global variable ALPHATAB_ROOT can be defined before initializing. Please be aware that bundling alphaTab together with other scripts might cause errors in case those scripts are not suitable for web workers. e.g. if there is a script bundled together with alphaTab that accesses the DOM, this will cause an error when alphaTab starts this script as worker.

core.scriptFileJavaScript
scriptFileJavaScript
core.scriptFileJSON
scriptFileJSON
data-core-scriptfileHTML
data-scriptfileHTML

Types

stringAll

Default Value

Absolute url to JavaScript file containing alphaTab. (auto detected)