I have finished reading the XNA Game Studio 2nd Edition and, having read the chapter covering lighting systems, I am having trouble figuring out how to create a "basic" flashlight in XNA 3.1 (though I am currently reading Learning XNA 4.0) right now.

I have tried tweaking the code and have been able to make the light used in the chapter example bright and dimmer, but haven't been able to dim the ambient light nor been able to "focus" the light into a beam shape.

This is not for a game persay, just tweaking the code found in the book. I was trying to change it so that the light used in the example is more focues like a flashlight beam. I don't have access to the code used in the chapter at the moment, but can post it as soon as practicle.

The code is 3D as the author has created a camera system and is demonstarting the use of lighting by having a light follow the movement of the camera.