How do I get my cat to use a cat flap?

Cat flaps are very useful. Sometimes it may be better to have some control over when your cat goes outside by opening the door as this also creates a way to communicate with your cat: she asks and you respond. Cat flaps are not always the answer.