How to control Another Object by using other one

I was remaking my flash game in 3D version using unity. I learnt a bit AS3 but then I switched to unity. In AS3 it was easy to control a object from another object but I started having problem in unity. I want to control another object like removing it or disabling its rrndrr . I am using JavaScript can anyone help

Fortunately, it’s completely trivial to do in Unity too. Did you actually try reading any documentation when switching from AS3, or were you just going to guess?

http://unity3d.com/learn/tutorials/modules/beginner/scripting/getcomponent