Mary flicked the light off and went out of the room.
Please flick the light off as you go out the door.
Please flick off the light.