Added: 2 years ago
From: robbyslacks
Views: 21,978
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (95)

Sign In or Sign Up now to post a comment!
  • Great tute. thanks! Here's a questions for you though. What if I want the audio to start out muted and then allow the click to un-mute? I've tried changing the variables with no luck.

  • kewlllll

  • How come learn a lot of things from you more than our teacher?

  • Comment removed

  • my sound plays over itself

  • my sound over itself

  • Oh man, thanks so much! I don't know actionscript so this helped a ton. I did have to futz with the code a little bit, but this is still the only code i've found that actually worked in my project, even with tweaking ;w; THANK YOU

  • robbyslacks

    input you as3 for the anus

    and you linux jajajaaj

    dammed lammer gay

    as3 go to dessapears equal win vista hahahaa

    is a poor shit

    AS3 RULES WIN XP RULES FUCK LINUX FUCK VISTA FUCK SEVEN FUCK

    ONLY MAKE THE LIVE MORE COMPLIED DAMMEDS GAYS

  • COMPARE IN AS3 IS: function setMute(vol){ var sTransform:SoundTransform = new SoundTransform(1,0); sTransform.volume = vol; SoundMixer.soundTransform = sTransform; } var Mute:Boolean = false; mutebutton.addEventListener (MouseEvent.CLICK,toggleMuteBt­n); function toggleMuteBtn(event:Event){ if(Mute){ Mute = false; setMute(1); mutte.gotoAndStop(1); }else{ Mute = true; setMute(0); mutte.gotoAndStop(2); } } IN AS3 IS ONLY: on(release){ stopAllSounds(); } FUCK LAMMERS like as3 of shit
  •  on(release){

    stopAllSounds();

    }

  • on(release){

    stopAllSounds();

    }

    

  • FUCK WORK FOR THE SAME SHIT HAHAHAAHAHA

    AS3 RIDICULOUS

  • DAMMED AS3 OF SHIT JAJAJAJAJA THE SAME BUTON IN AS2 IS : on(release){ stopAllSounds(); } HAHAH ONLY 2 LINES HAHAHAHA 9 LINES IN AS3 FOR MAKE THE SAME HAHAAHHA AS3 IS SHIT IS FOR SAD GAYS HAHAHAAHAHAHAH I
  • thank u very very very much.....u great great great..uhhhhhhhhhaaaaaaa......­...

  • will this work using actionscript 2?

    

  • @chickensoupsoda

    no

    only work in the shit of as3

    in as2 is: on(release){ stopAllSounds(); }

    alls the stupid lines for make only this haha

    the man is a ridiculous

    as2 rules

  • @sanctusen666 yea as2 rules

  • dude you ROCK !!! I was trying to make this in CS3 and it was a nightmare, great job !

  • THANK. YOU. SO. MUCH

  • Using CS4, and an old FLA originally made in Flash 9 (macro), re-saved as a CS4 fla.

    Bad swf intro the boss won't let me delete, killing our SEO, so we're trying to put on home.htm (index.htm) with a mutebutton.

    The class or interface 'SoundTransform' could not be loaded.

    The class or interface 'Event' could not be loaded.

    Publish settings are Fl 8, AC2. When I tried to change to 9 or 10 (to use AS3), there is no preview, no movie, nothing but the music. I know very little about Fl. Screwed?

  • Thanks man, you're a life saver!

  • This works SWEET!! Thank you soooo much!

  • TY SO MUCH <3

  • ahhh ——— you're the best

  • Thankyou Thankyou Thankyou! Making a mute button has been the bane of my life but your tutorial showed it really well thankyou!! I'll show you how I used it in my game when it's finished! xxx

  • Oh wow. You just rescued me after several hours of searching. Awesome tutorial, much appreciated! ^_^

  • Hi Robby. This is very useful thanks. Do you have a tutorial for multiple buttons with multiple sounds ?

  • For the 'soundwaves' couldnt you have used a a visible function?

  • It all works but after a while my music restarts over the first time it was playing. Any idea whats the cause of that?

  • AAAHHHHHHH! you saved my JOB! thanks so much! Happy New Year

  • Dzięki, tego potrzebowałem. Polać mu!

  • Thank you, you helped me a lot with this tutorial

  • i want to make stop and play in one button

    how to make that ????

    

  • I needed a mute button for a project. Your tutorial is really helpful. Thanks for sharing!

  • you are the best!! thanks a lot!

  • Thanks for a great tutorial ^_~v Keep it up :)

  • Thanks a lot! =)

  • Comment removed

  • @tutor4us okay so this is a tutorial to mute the sound and the track still plays, the other tutorial is to stop the sound and then start it again.

  • Comment removed

  • Comment removed

  • Comment removed

  • Thanks for this a great tut on exactly what I was trying to implement!

  • Thanks for this a great tut on exactly what I was trying to implement!

  • thanks for he tutorial i now have a mute option for my portfolio

    how do i make thesound in the menu of my portfolio to repeat itself?

  • great tutorial :)

    sorry but with "var sTransform:SoundTransform = new SoundTransform(1,0)" the sounds appears in mono only

    better with "var sTransform:SoundTransform = new SoundTransform(0,0)" no ?

  • Thanks alot, it was so helpfull :D

  • oh man! you saved my life these tutorials are gold!

  • Comment removed

  • Comment removed

  • it stops my video sound .

    i don't know what's wrong with

    help me please

  • thank bro

    i just need this to finish my website in flash it was awesome and helpful thank a million

  • you didn't paste the whole code into the sidebox :S

  • Next time, try giving what html actionscripting your using or what media of flash too. Nothing worked and nothing can be changed.

  • anyway to add a fade out and in when audio is muted / unmuted?

  • i got some errors :(

    1120: Access of undefined property mutte.

    1120: Access of undefined property mutte.

    1120: Access of undefined property mutebutton.

  • @XxSchlongConneryxX

    I got those as well, but got rid of the first two, once I correctly named the instance of the movie clip 'mutte'. Still getting the last one - 'Access of undefined property mutebutton'.

    Also my stop commands don't seem to be working because my 'sound lines' are flashing on and off like the 2 frame movie clip is on a loop.

    Any suggestions?

  • @GR8M8108 yeh bro i got mine workin...when u click on the button go to properties and where it has objects name or what ever call it mutebutton

  • KICK-ASS tutorial:

    - useful functionality

    - good video

    - good audio

    - excellent explanation

    - works perfectly

    - has AS code written out for copy&paste

    Can't really ask for much in a tutorial.

    10 / 10.

    THANKS!!!!!!

  • Thank you very much!

  • Tahnk you very much!

  • If I'm using CS3 ActionScript 2.0, how can I get this code to work for me?

  • @TheMissingNoMaster

    I've made one,can make a vid to show u if u want.Even though this is a good video,I think my code is somewhat easier to learn.

  • so incredibly helpful! i could not figure it out via forums. thank you!!

  • How would we apply this to a video? This code works, but its muting my entire website.

  • Oh my gosh, thank you so much!

  • oh finally a serious tutorial for that complicate AC3 !

  • Thank you SO much!!!! Seriously. Total lifesaver.

  • I have 3 errors that come up. Im using CS4 but also using it in an animation. I get: "1120: Access of undefined property Mute." in 3 different sources, those being "if(Mute){" , "Mute = false;" , and "Mute = true;" any ideas on what went wrong?

  • worked for me, but here's my question dude, what if i got this presentation through different scenes and want that button act in each one of them just like the tutorial you showin' here?...i already tried paste the script in every scene and dragged into the stage the button (music) but it comes up with an error "ArgumentError: Error #2108: No se encontró la escena Scene 0.

    at flash.display::MovieClip/gotoA­ndStop()

    at PresentacionEmpresarial_fla::M­ainTimeline/toggleMuteBtn1()"

    why's that? tks!

  • I have question. I want that music be don't played.

    Just now after click of button music played.

    What i need code? ; /

  • thanks for code.

  • you f*cking

  • How do you start the swf with the sound off but have the button function the same way?

  • OMG this is perfect! and it works great!!! THANK YOU so much!!!!!

  • hey no prob now! thanks alot! u know how to create the micbutton for all scenes instead of 1?

  • Comment removed

  • Thanks so much! A big help for those easing into actionscript. =)

  • Do you know how to make a light switch for a flash website? :||

  • Dude. Worked like a charm. thanks a ton!

  • Awesome tutorial, works like a charm.

  • Sorry about all the deleted posts, I was wrong about something.

    Great tutorial! Solved exactly what I needed. But the reason why chjava1 had an error is because there's an error in the code in the information box.

    You have it written as C LICK instead of CLICK

  • cool, thanks.

  • Comment removed

  • I tried this and it didn't work. I get (3) errors that read:

    1120 Access to undefined property Mute.

    Any suggestions on what went wrong?

  • Hm, I have no idea. Sorry for asking, but you're using CS4, right?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more