though their wings beat in wholly different time , their relative positions hardly changed , until the longwing 's signal-midwingman waved a flag ; then they switched off smoothly as dancers , reversing so the longwing was flying last .