I tried:
runtime.objects.MySlider.value = newValue;
but that didn't work.
This is a common mistake confusing object types and instances. You usually need a call to getFirstInstance(). See the Learn JavaScript in Construct tutorial series which covers the basics like this.
getFirstInstance()
Develop games in your browser. Powerful, performant & highly capable.
thanks
const mySliderInstance = runtime.objects.MySlider.getFirstPickedInstance(); mySliderInstance.value = newValue;
worked