Play MainMenu after Movie Texture is done playing

All I need is to make sure the Main Menu will start after the movie. I think I need an if statement but I’m not sure. I tried using a boolean but no luck

var isPlaying : boolean;
function Start () 
{
/* Grab the texture attached to the GuiTexture object and play the video */
guiTexture.texture.Play();	// movie wil not start on its own

/** Play the audio attached to the GuiTexture*/
audio.Play();	//audio will not start on its own
isPlaying = true;

}

function Update () 
{
  if (guiTexture.texture.isPlaying == false  isPlaying == false)
  {
    isPlaying = false;
    Application.LoadLevel(2);
  }
}

I tried it and it still don’t work, it jus shows a black screen after the video played :\

Might I suggest creating a Coroutine (or use the Yield WaitForSeconds function) and set the timer to the duration of your movie texture? I had the same issue as you do now, and this is how I resolved it.

Basically, when the Movie Texture is played, it remains as “playing” or isPlaying == false, until you call a MovieTexture.Stop(); function.