Trying to make a video triggerable by a button.

I can make the video play with this script:

var movieFile : MovieTexture;
 
function OnTriggerEnter (col : Collider) {
    //This gets called when the player hits the movie plane
    if (col.gameObject.name.StartsWith("Player")) { //Check that we are dealing with the player.
        renderer.material.mainTexture = movieFile; // Assign the movie to the renderer.
         movieFile.Play(); //Play the movie on the plane
    }
}

The problem I am having is I can’t figure out how to make a separate collider like a button make the video start. My ultimate goal is to have three buttons which can cause different videos to play on a screen.

so I don’t know if this is what you want but to me it sounds that: you have a player and when he runs into a trigger collider and then a movie should play if that is the case then try this:

var movieFile : MovieTexture;
 
function OnTriggerEnter (col : Collider) 
{
    if (col.transform.name("Player"))// you can also use a tag sytem
    {
        renderer.material.mainTexture = movieFile;
         movieFile.Play();
    }
}

(please note that i have never used movieTextures before)