一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

flash 音量调节脚本

时间:2008-07-31 编辑:简简单单 来源:一聚教程网

------------------音量调节脚本-------------
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);
        };
}

热门栏目