When the avast icon rotates it is scanning, either background activity forcing avast to scan, like P2P download, etc. or a background scan (scheduled), etc.
So what exactly were you doing when this happens ?
As Tech suggests when it is happening check the main shields, File System Shield, P2P Shield, Web Shield, etc. to see which Shield is actually scanning and what.