1 Reply Latest reply on Sep 30, 2011 11:35 AM by kglad

    how to control audio?

    Venkom Level 1

      How to attach video player netstream audio in this acript, and not controling my player audio.

       

       

      var myGlobalSound:Sound = new Sound();
      //vol_txt.text = Math.round(volControl_mc.dragger_mc._x);
      function setUpSound():Void {
                //myGlobalSound.attachSound("filename");
                myGlobalSound.start(0, 1);
                myGlobalSound.setVolume(volControl_mc.dragger_mc._x);
      }
      volControl_mc.dragger_mc.onMouseDown = function() {
                if (this.hitTest(this._parent._parent._xmouse, this._parent._parent._ymouse)) {
                          this.startDrag(false, -25, 0, 20, 0);
                          this.onEnterFrame = function() {
                                    //vol_txt.text = (Math.round(this._x));
                                    myGlobalSound.setVolume(Math.round(this._x));
                          };
                          this.onMouseUp = function() {
                                    this.stopDrag();
                                    delete this.onEnterFrame;
                          };
                }
      };