Movie Texture w/Javascript code

I’m trying to load a .mov movie texture onto a cube using your Javascript code from Unity
script reference. I’m using the Unity4 Pro trial before purchasing it. here is the snippet…

// Assigns a movie texture to the current material and plays it.

var movTexture : MovieTexture;

function Start () {
    renderer.material.mainTexture = movTexture;
    movTexture.Play();
}

BCE0022: Cannot convert ‘MovieTexture’ to ‘UnityEngine.Texture’ is the error I get.
I’ve dropped the script onto the cube object that also contains the movie texture. How
do I get the Movie Texture to play?

That code compiles and runs with no issues here. You could do “renderer.material.mainTexture = movTexture as Texture;” but it’s not actually needed.