Multi-click the flag and turn on Turbo Mode for the music to sync properly.
The Scratch music extension and the cool beat in this project, which I got from my friend.