It's part of the functionality to allow you to change the opacity of an individual layer. It's always worked fine for me. If one of the examples provided is close to what you want, but you're having problems with it, you ought to be able to post your code and get some assistance.