I'm running Avast on a new 8.1 laptop with no problems with Silverlight or Flash. So it might have been a corrupted install of avast. Run the uninstall utility in safe mode. It will automatically reboot.
Check in file explorer if you have an Avast folder left and delete it. Under C: - program files. Reboot and try a fresh install of Avast.