netStreamX.onStatus = function(infoObject) { if (infoObject.code == "NetStream.Play.Stop") { //здесь функция перехода } };