A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Please help turn all sounds OFF! [streaming and event]

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    25

    Please help turn all sounds OFF! [streaming and event]

    There is a mute button in the upper right corner of the user interface. I want to turn ALL sounds off with this button. in the first frame of the movie there is:

    globalvolume = new Sound();

    This seems to turn some sounds off but not all. Please help! It has to be able to turn streaming sounds and event sounds off, and i cannot use stopAllSounds. The sound button is the button on the left in the top right corner of movie attached to this Post.

    Script attached to "off" button:

    on (release) {
    if (_root.globalvolume.getVolume()>0) {
    _root.globalvolume.setVolume(0);
    setProperty(_level4.mute, _visible, true);
    // mutes all sound
    play();
    // switch to mute frame
    } else {
    _root.globalvolume.setVolume(100);
    // unmutes all sound
    play();
    // switch to unmute frame
    }
    }

    Script attached to "on" button:

    on (release) {
    if (_root.globalvolume.getVolume()>0) {
    _root.globalvolume.setVolume(0);
    // mutes all sound
    play();
    // switch to mute frame
    } else {
    _root.globalvolume.setVolume(100);
    setProperty(_level4.mute, _visible, false);
    setProperty(_level8.mute, _visible, true);
    // unmutes all sound
    play();
    // switch to unmute frame
    }
    }
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Jan 2001
    Posts
    25

    Ummmmmm

    Any one have any ideas?

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