Instead of yelling and spanking which don't work anyway I believe in finding creative ways to keep their attention - turning things into a game for instance. And when they do something good positive reinforcement and praise.
It's good to have money and the things that money can buy but it's good too to check up once in a while and make sure that you haven't lost the things that money can't buy.