A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Please help turn all sounds off! [FILE ATTACHED]

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

    Please help turn all sounds off! [FILE ATTACHED]

    In this movie there is a mute button in the upper right hand corner of the user interface. This button I want to turn ALL sounds off. in the first fram 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.

    A.S. 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
    }
    }

    A.S. 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
    Last edited by liske; 01-12-2004 at 01:37 PM.

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

    ummm

    Does no one have any leads?

  3. #3
    Spartan Mop Warrior Loyal Rogue's Avatar
    Join Date
    Apr 2003
    Location
    The Pit of Despair
    Posts
    513
    Have you tried posting your question over in the Sounds and Music forum?
    This sounds like something right up their alley.
    ::
    "Just go make web and stfu already." - jAQUAN

    "Twitter is a public display of verbal diarrhea that comes out in small squirts." - Gerbick

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    What are these level 4 & level 8 bits? Sounds on those levels?

    What sounds aren't stopped?

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

    levels

    Thanks for the responses.

    I have movies on level 4 and level 8 as well, but the reference to them in the sound button is just to make a clip invisible or visible [it is a closed caption solution].

    No sounds are stopped right now except for the streaming narration on level4. But I need all these button event sounds stopped as well.

    Jason

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    They have to be soundObjects also and not event sounds added on the buttons themselves.

    Something like on your first frame...

    _root.my_over = new Sound();
    _root.my_over.attachSound("over.mp3");
    // linkage has to be set in the Library

    Then on rollOver events on your buttons...

    on (rollOver) {
    _root.my_over.start();
    }

    Muting one soundObject will mute all of them, even on other levels.

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