0 Replies Latest reply on Dec 10, 2010 2:13 AM by smilelilac

    How to record audio or capture sound using microphone in macromedia flash8?

    smilelilac Level 1

      Hi

       

      How can we record or capture audio using microphone in flash with out using plugins or Flash Media Sever..?

       

       

      I tried this is the code.

       

      stop();
      this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
      System.showSettings(2);
      var active_mic:Microphone = Microphone.get();
      sound_mc.attachAudio(active_mic);
      function recordAudio():Void {
          sound_mc.publish(audiotest, "record");
      }
      function playRecordedAudio():Void {
          sound_mc.play(audiotest);
      }
      recordBtn_mc.onRelease = function():Void  {
          recordAudio();
      };
      stopBtn_mc.onRelease = function():Void  {
          stopRecordingAudio();
      };
      playBtn_mc.onRelease = function():Void  {
          sound_mc.playRecordedAudio();
      };