Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    20
    Member #
    22721
    anybody got action script 2 code for toggle sound on/off button?

  2.  

  3. #2
    Member spokanewebguy's Avatar
    Join Date
    Aug 2010
    Location
    Spokane
    Posts
    68
    Member #
    23273
    Liked
    1 times
    Flash Sound On/Off Button has one, you can even download the FLA if your still not clear how to do it after the tutorial.

  4. #3
    Member ScienceGuy22's Avatar
    Join Date
    Sep 2010
    Location
    Los Angeles, CA
    Posts
    35
    Member #
    23376
    it's useful

  5. #4
    Junior Member Red Racer's Avatar
    Join Date
    Jul 2010
    Posts
    20
    Member #
    22720
    Hello, this is what i have on my action frame

    music.onSoundComplete = function(){
    music.start();
    }

    var sound_on = true
    var music = new Sound()
    music.attachSound("music");
    music.start();

    this is what i have on my button

    on(release){
    if (_root.sound_on==true){
    _root.sound_on=false;
    }else{
    _root.sound_on=true;
    music.start();
    }
    if(sound_on!=true){
    stopAllSounds();
    }
    }

    And to do this you have to export your music file from your flash library, to do this right click your music file go to properties, then click advanced, go down to the Identifier and say music(make sure the exprot for AS is ticked)

    Hope this helps a little.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:50 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com