Company employees can only trade their stock when that 'insider' information is made public—when the insider has no direct advantage over other investors.
The information is made public by the company through a press release or some other type of general announcement.