FLASH播放源代码解说

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:50:04
}
cb.player.onRollOver = function() {
showTip("Play / Pause");
};
cb.player.onRollOut = cb.player.onPress=function () {
removeTip();
};
cb.player.onRelease = function() {
if(sign == "closed" || sign == "first" || sign == "select") {
playtime();
} else
ns.pause();
cb.plabel.play();
};
cb.stopper.onRollOver = function() {
showTip("Stop Video");
};
cb.stopper.onRollOut = cb.stopper.onPress=function () {
removeTip();
};
cb.stopper.onRelease = function() {
ns.seek(0);
ns.pause(true);
cb.plabel.gotoAndStop(2);
removeTip();
};
var ffInt;
cb.fforwarder.onRollOver = function() {
showTip("Fast Forward");
};
cb.fforwarder.onRollOut = function() {
removeTip();
};
cb.fforwarder.onPress = function() {
removeTip();
ffInt = setInterval(ff, 200);
}

真不会呀,下面是按钮控制部分===================================================
cb.replayer.onRollOver = function() { //当鼠标指针移到按钮区域时
showTip("Replay Video");
};
cb.replayer.onRollOut = cb.replayer.onPress=function () {
removeTip();
};
cb.replayer.onRelease = function() { //当释放按钮时调用
ns.seek(0);
ns.pause(false);
cb.plabel.gotoAndStop(1);
};

cb.rewinder.onRollOver = function() { //当鼠标指针移到按钮区域时调用
showTip("Pre");
};
cb.rewinder.onRollOut = function() { ////当鼠标指针移出按钮区域时
removeTip();
};
cb.rewinder.onPress = function() { //当快退按钮单击时.
ns.pause(); //停止流
AudioPath = aPath[current_song=current_song-1];
main.welcome._visible = false;
ns.play(AudioPath);
};
cb.player.onRollOver = function() { /