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.
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
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,toggleMuteBtn); 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
HAHA 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
HAHA 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
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
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?
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
I really appreciate this tutorial. But on line 7 'mutebutton' I received a compiler error. I was able to fix this using MuteBtn (the property name of the button on Stage/in Library). How did yours work since I followed all your steps, names of objects, etc. and used your function posted above?
Scratching my head here. Thanks for a great tutorial though.
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.
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/gotoAndStop()
at PresentacionEmpresarial_fla::MainTimeline/toggleMuteBtn1()"
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.
kliefy 1 week ago
kewlllll
zorro30mum 2 weeks ago
How come learn a lot of things from you more than our teacher?
escapeandsmilee 2 weeks ago
This has been flagged as spam show
works perfect thanks mate
badabapbap 1 month ago
Comment removed
badabapbap 1 month ago
my sound plays over itself
UltimateDillon 3 months ago
my sound over itself
UltimateDillon 3 months ago
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
loarfy 3 months ago
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
sanctusen666 4 months ago
sanctusen666 4 months ago
This has been flagged as spam show
IN AS3 IS ONLY: on(release){
stopAllSounds();
}
sanctusen666 4 months ago
on(release){
stopAllSounds();
}
sanctusen666 4 months ago
This has been flagged as spam show
on(release){
stopAllSounds();
}
sanctusen666 4 months ago
on(release){
stopAllSounds();
}
sanctusen666 4 months ago
FUCK WORK FOR THE SAME SHIT HAHAHAAHAHA
AS3 RIDICULOUS
sanctusen666 4 months ago
This has been flagged as spam show
sanctusen666 4 months ago
This has been flagged as spam show
sanctusen666 4 months ago
sanctusen666 4 months ago
thank u very very very much.....u great great great..uhhhhhhhhhaaaaaaa.........
SACHOOOS150690 4 months ago
will this work using actionscript 2?
chickensoupsoda 4 months ago
@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 4 months ago
@sanctusen666 yea as2 rules
wild939 3 months ago
This has been flagged as spam show
@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 4 months ago
dude you ROCK !!! I was trying to make this in CS3 and it was a nightmare, great job !
darkolt 8 months ago
This has been flagged as spam show
Großartig, hat mir sehr geholfen, danke !!
beschlagnahmt 8 months ago
THANK. YOU. SO. MUCH
BoykeGH 8 months ago
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?
aliendogbrain 9 months ago
Thanks man, you're a life saver!
drewtheripper 9 months ago
This works SWEET!! Thank you soooo much!
LingoLcreates 9 months ago
TY SO MUCH <3
HanzoROXems 9 months ago
ahhh ——— you're the best
laskfarvortok1 9 months ago
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
sillymoop 10 months ago
Oh wow. You just rescued me after several hours of searching. Awesome tutorial, much appreciated! ^_^
Silverpaw15 11 months ago
Hi Robby. This is very useful thanks. Do you have a tutorial for multiple buttons with multiple sounds ?
DOmusicproductions 11 months ago
For the 'soundwaves' couldnt you have used a a visible function?
Neighborhoodbordness 11 months ago
It all works but after a while my music restarts over the first time it was playing. Any idea whats the cause of that?
bloodybastia6 1 year ago
AAAHHHHHHH! you saved my JOB! thanks so much! Happy New Year
Sfcharm 1 year ago
Dzięki, tego potrzebowałem. Polać mu!
ikrysteq 1 year ago
Thank you, you helped me a lot with this tutorial
1988mode 1 year ago
i want to make stop and play in one button
how to make that ????
SaRoNa138 1 year ago
I needed a mute button for a project. Your tutorial is really helpful. Thanks for sharing!
tricia18aug 1 year ago
you are the best!! thanks a lot!
mparedes81 1 year ago
Thanks for a great tutorial ^_~v Keep it up :)
StardustStaynight 1 year ago
Thanks a lot! =)
shu0017 1 year ago
Comment removed
tutor4us 1 year ago
@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.
robbyslacks 1 year ago
Comment removed
tutor4us 1 year ago
Comment removed
tutor4us 1 year ago
This has been flagged as spam show
I really appreciate this tutorial. But on line 7 'mutebutton' I received a compiler error. I was able to fix this using MuteBtn (the property name of the button on Stage/in Library). How did yours work since I followed all your steps, names of objects, etc. and used your function posted above?
Scratching my head here. Thanks for a great tutorial though.
dtm002 1 year ago
Comment removed
dtm002 1 year ago
Thanks for this a great tut on exactly what I was trying to implement!
MsRg84 1 year ago
Thanks for this a great tut on exactly what I was trying to implement!
MsRg84 1 year ago
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?
2uneek 1 year ago
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 ?
91numa 1 year ago
Thanks alot, it was so helpfull :D
nafiss00 1 year ago
oh man! you saved my life these tutorials are gold!
nybroadcasting 1 year ago
Comment removed
nybroadcasting 1 year ago
Comment removed
nybroadcasting 1 year ago
it stops my video sound .
i don't know what's wrong with
help me please
rockomoron 1 year ago
thank bro
i just need this to finish my website in flash it was awesome and helpful thank a million
rockomoron 1 year ago
you didn't paste the whole code into the sidebox :S
viselda 1 year ago
Next time, try giving what html actionscripting your using or what media of flash too. Nothing worked and nothing can be changed.
Xtermination100 1 year ago
anyway to add a fade out and in when audio is muted / unmuted?
nowist 1 year ago
i got some errors :(
1120: Access of undefined property mutte.
1120: Access of undefined property mutte.
1120: Access of undefined property mutebutton.
XxSchlongConneryxX 1 year ago
@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 1 year ago
@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
XxSchlongConneryxX 1 year ago
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!!!!!!
maledicto 1 year ago
Thank you very much!
s4amedia 1 year ago
Tahnk you very much!
s4amedia 1 year ago
If I'm using CS3 ActionScript 2.0, how can I get this code to work for me?
TheMissingNoMaster 1 year ago
@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.
YouShouldBeSpankful 1 year ago
so incredibly helpful! i could not figure it out via forums. thank you!!
goldensofa 1 year ago
How would we apply this to a video? This code works, but its muting my entire website.
AshehKitteh 1 year ago
Oh my gosh, thank you so much!
AshehKitteh 1 year ago
oh finally a serious tutorial for that complicate AC3 !
fleshmannn 1 year ago
Thank you SO much!!!! Seriously. Total lifesaver.
Boxcarification 1 year ago
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?
brendan12303 1 year ago
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/gotoAndStop()
at PresentacionEmpresarial_fla::MainTimeline/toggleMuteBtn1()"
why's that? tks!
PabloJasso 2 years ago
I have question. I want that music be don't played.
Just now after click of button music played.
What i need code? ; /
FreshakaFeli 2 years ago
thanks for code.
FreshakaFeli 2 years ago
you f*cking
16icq 2 years ago
How do you start the swf with the sound off but have the button function the same way?
startupers 2 years ago
OMG this is perfect! and it works great!!! THANK YOU so much!!!!!
elle000721 2 years ago
hey no prob now! thanks alot! u know how to create the micbutton for all scenes instead of 1?
ilovesui 2 years ago
Comment removed
ilovesui 2 years ago
Thanks so much! A big help for those easing into actionscript. =)
Caprinae 2 years ago
Do you know how to make a light switch for a flash website? :||
nicoboy 2 years ago
Dude. Worked like a charm. thanks a ton!
duballstar014 2 years ago
Awesome tutorial, works like a charm.
jaybbadz 2 years ago
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
dragonfirecafe 2 years ago
cool, thanks.
robbyslacks 2 years ago
Comment removed
tutor4us 1 year ago
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?
chjava1 2 years ago
Hm, I have no idea. Sorry for asking, but you're using CS4, right?
robbyslacks 2 years ago