Transparent render layers
It could be that you are not actually providing the compositor with any transparency. The alpha output socket from the scene node will just be a solid white unless you check the following properties:

Blender Internal: Turn on Shading > alpha > transparent, in render properties.

Cycles: Turn on film > transparent, in render properties.