This is the code and asset files for the Unity3d Flashlight Tutorial on YouTube http://www.youtube.com/playlist?list=PLB21B6E365F8A37EC
The changes that differ from the video to make the code work in Unity 3D 4.x are commented within the files.
Assets are available for download on this repository as well.
This is the most appropriate place to post any requests or fixes in the code. I will consider all pull requests as they are made.