Generally speaking if your service is based on StdService and it's properly constructed then the 'event' parameter should have either event.packet or event.record (depending on whether it is bound to NEW_LOOP_PACKET or NEW_ARCHIVE_RECORD) which will give you access to the loop packet or event record just as Tim has done. There was no context in Tom's example and I suspect that is why there is the subtle difference.
Gary