Has an AFL game ever ended 40-34?
Yes. AFL has seen a final score of 40-34 3 times. It first happened on May 27, 1911, when Collingwood beat Sydney, and most recently on April 16, 1995, when Richmond beat Hawthorn.
That makes 40-34 the 1534th most common final score out of 6,607 that have ever occurred in AFL. One point away, 41-34 has happened never and 40-35 has happened never. At one point the score disappeared for 77 years, between 1918 and 1995.