How to access Vuforia C# library from Javascript

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?

There is a script compilation order in Unity, and to access C# for JS or JS from C# you have to understand and use this order. Check out this page:

http://docs.unity3d.com/Documentation/ScriptReference/index.Script_compilation_28Advanced29.html

Julien, your link is broken. Here’s an answer to the question.