A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Stop all sound

  1. #1
    Senior Member
    Join Date
    May 2004
    Posts
    627

    Stop all sound

    Hi, all. I have a script which mute the sound when I press. This is the script I use
    mute_btn.addEventListener("click",muteVideo);
    function muteVideo(me:MouseEvent) {
    SoundMixer.stopAll();

    }

    But when I press it, I found the video I load from external source will stop playing.
    This is the way I import my video

    var my_nc:NetConnection =new NetConnection();
    my_nc.connect(null);
    var my_ns=new NetStream(my_nc);
    my_video.attachNetStream(my_ns);
    my_ns.play("overall.flv");

    How come stop sound will cause the video stop playing?

  2. #2
    lemon juice hurts your eyes florianvanthuyn's Avatar
    Join Date
    Jul 2005
    Location
    Merelbeke, Belgium
    Posts
    546
    Stopping all sounds is different than muting, so I guess in order to stop the video sound, it has to stop the video too.
    Can't you drop the volume of the Video object to 0?
    Florian Vanthuyne

    WAR AGAINST SOLVED THREADS
    mark yours as Resolved under Thread Tools!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center