Unity can't load level

Hi!
I’ve been working on this sidescroller game for quite a while. Everything is going quite good, but I have a problem.
Unity can’t load any levels when I’m using Application.LoadLevel.

For example, here’s my JS code to load a level with a jet plane:

#pragma strict

function Update() {
if(Input.GetMouseButtonDown(0))
Application.LoadLevel (JetLevel);
}

But I get this error.
alt text
And yes I do have my scenes in the build settings.
alt text

Any ideas on what I should do to get this fixed?

Thanks a lot! :slight_smile:

JetLevel needs to be in double quotes:

Application.LoadLevel ("JetLevel");

Application.LoadLevel() as two versions, one uses names, the other uses numbers.