flash 音量调节脚本
------------------音量调节脚本-------------
on(press){
this._parent.sound_z._width = this._xmouse;
_root.audio.SetVolume(100);
trace(this._parent.sound_z._width/60*100);
}
------------------播放进度拖放脚本---------------
onClipEvent (mouseDown) {
pro_drag_x = this._xmouse;
delete this.onEnterFrame;
}
onClipEvent(mouseUp){
this._x = this._x+this._xmouse-pro_drag_x;
_root.netStream.seek(this._x/200*_root.netStream.totalTime);
//循环显示播放进度拖放按钮位置
this.onEnterFrame = function(){
this._x = Math.ceil(_root.netStream.time/_root.netStream.totalTime*200);
};
}
on(press){
this._parent.sound_z._width = this._xmouse;
_root.audio.SetVolume(100);
trace(this._parent.sound_z._width/60*100);
}
------------------播放进度拖放脚本---------------
onClipEvent (mouseDown) {
pro_drag_x = this._xmouse;
delete this.onEnterFrame;
}
onClipEvent(mouseUp){
this._x = this._x+this._xmouse-pro_drag_x;
_root.netStream.seek(this._x/200*_root.netStream.totalTime);
//循环显示播放进度拖放按钮位置
this.onEnterFrame = function(){
this._x = Math.ceil(_root.netStream.time/_root.netStream.totalTime*200);
};
}
补充:flash教程,动画技术