Thanks xld, your code is working perfectly. but the screen is still flickering?