A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Mute Button ?

  1. #1
    Member
    Join Date
    Jul 2003
    Location
    Lahore
    Posts
    92

    Mute Button ?

    Hi I want to add mute button to my movie using dot notation code. Using one button it should mute / unmute the sound. Thanx.
    Nemesis

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    First frame of the main timeline...

    myGlobalSound = new Sound(this);

    On the button...
    Code:
    on (release) {
    	if (muted = !muted){
    		myGlobalSound.setVolume(0);
    	}else{
    		myGlobalSound.setVolume(100);
    	}
    }

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