This is an interesting notion and I'd be interested in getting it to
work too. To incorporate it in the next release of Easy FancyBox
plugin for WordPress which supports Vimeo by the way, so it might
serve your purpose too ;)
Now I found some generic javascript suggestions to detect the end of a
flash movie which might be usable :
A.
function poller(){
if (! thisMovie(moviename).IsPlaying()){ parent.$.fancybox.close(); }
window.setTimeout('poller()', 1000);
}
B.
yourObject.onStatus = function(detect) {
if(detect.code == "NetStream.Play.Stop") { parent.
$.fancybox.close(); }
}
C.
var movie = window.document.movie;
if(movie.TCurrentFrame("/") == movie.TotalFrames())
parent.$.fancybox.close();
D.
video.addEventListener(VideoEvent.COMPLETE, parent.
$.fancybox.close());
All only partly adapted and certainly untested :) so it needs work.
The route I see is to use 'onComplete' in FancyBox to start the
detection routine and then from within that function call parent.
$.fancybox.close(); ( do we need "parent." here? ) to auto-close the
overlay at the end of the movie...