Check out Roberto Carlos’s goal for Corinthians from a few days ago. He surprises the goalie by taking a quick corner kick. The same principles apply in catching the goalie off his line when you shoot from distance, say from center field. The ball needs to be deadly accurate and hit with power otherwise the goalie will be able to recover. This type of play is never thought up of on the spot. The players who pull this move off study their opponents to see what parts of their game are weak. One of those weaknesses might be they come off their line too often. 

Furthermore, this entire play was poorly defended. There wasn’t a defender marking the front or back post. And the goalie was too far off his to line recover. However, kudos to Roberto Carlos for this quick thinking.