get variable from a different game object


I'm trying to get the variable fixture from a script named *object_Menu* attached to a gameobject called *fixture_01* could anyone explain to me the correct syntax for doing this? I'm struggling with this simple task.


Phew, solved the problem, heres the code if anyones interested!

    private var fixtureobject : GameObject;
private var fixtureselected = 0;

function Update () 

    fixtureobject = GameObject.Find("fixture_01");
    fixtureselected = fixtureobject.GetComponent(Object_Menu).fixture;

    if (fixtureselected == 6) renderer.enabled = true;

    if (fixtureselected != 6) renderer.enabled = false; 


hope this helps somebody!