Flickering Potentiometer

Again, I can't help you if you don't post your exact code and complete error messages.