1. Пользуемся тэгами code
2. Что мешает в 10-ом кадре anyMC запускать функцию function4?
3.

Код:
anyMC.play();
anyMC.onEnterFrame = function(){
if (this._currentframe == 10) {
function4();
delete this.onEnterFrame;
}
}
4. Конвейер Потапенко
http://potapenko.com/rus/articles/conveyor.htm