I found some code which uses Vuforia’s library to switch on the camera’s light in C#
ComeraDevice.Instance().SetFlashTorchMode(true);
The documentation for this class is here: https://developer.vuforia.com/resources/api/class_camera_device.htm
When I try this in UnityScript I get
BCE0005: Unknown identifier: ‘CameraDevice’
How should I be calling the above function from UnityScript / JavaScript?