Enable a GuiButton for when my character touches an object

I need to set up a simple guibutton that pops up when i get to a door that allows me to play to the next level. I have the button working just fine and I have the character recognising the trigger. Now I just need to have the object tell the button to appear and be clickable
var artistButton: Texture;

function OnGUI()
{
guiTexture.active = false;
if (GUI.Button(Rect(Screen.width/1.50,0,100,100),artistButton))
Application.LoadLevel(2);
}

function Start ()
{

}

function OnTriggerEnter (other: Collider)
{
if(other.tag == “artistTable”)
{
print(“artistTable”);
guiTexture.active = true;
}
}

you need to have a boolean to do this you dont have to make guiTexture.active to false and true.....infact it has no effect in your code because anyway it will change to false back within a single frame!!! change the code like the following

var showButton:boolean=false;

function OnGUI()
{

if(showButton)
{
  if (GUI.Button(Rect(Screen.width/1.50,0,100,100),artistButton)) 
  Application.LoadLevel(2);
}

}

function OnTriggerEnter (other: Collider) { 
 if(other.tag == "artistTable") 
 { 
  print("artistTable"); 
  showButton=true;
 }
}

Thank you Very much 2 days stressing and now I can move forward. I will be doing a lot of javascript work for then next few months and would very much like to look to you for help on this. Let me know of a way I can pay you for your future help and I’d be happy to pay for your help. Contract me directly at greg.edwards@cbs.com My name is Greg Edwards thank you

Thank you very much. I’m going to be doing a lot of work over the next few months. If you want could you give me your direct contact info. I’d very much like to turn to you for freelance work from time to time. Let me know your rates. Once again thank you so much