Swf banner rotation for swfs of varying lengths

Hello,

I am trying to create a banner rotator that will not rotate until the current swf has completed its movie. Is there a way to do this with swfs of different time lengths? Any help appreciated.

Thank you