I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.
I have a play and mute/unmute MC in a timeline instanced as "btn_playMute." The movie clip contains two frames. Each frame contains a button and some AS3. Here's the goal: When the flash loads, a video starts playing with the volume turned all the way down. This video continues, and loops when it gets to the end, ensuring that the volume is all the way down. I'm doing this as such:
HTML Code: import fl.video.VideoEvent; videoPlayer.volume = 0; videoPlayer.source = "dieSort.f4v"; videoPlayer.addEventListener(VideoEvent.COMPLETE,rewindAndMute); function rewindAndMute(videoEventObject:VideoEvent):void { [Code] .....
The problem is that when I click the button the first time, which restarts the video with the volume up, I get the following error in the Output panel: HTML Code: Play Button Clicked TypeError: Error #1009: Cannot access a property or method of a null object reference. at Semigen_fla::btn_playMute_1/frame2()[Semigen_fla.btn_playMute_1::frame2:3] at flash.display::MovieClip/gotoAndStop() at Semigen_fla::btn_playMute_1/playHandler()[Semigen_fla.btn_playMute_1::frame1:9] Any reason why my control MC is not changing states properly from "rewind and unmute" to "mute"?
I'm working with the FLVPlayback component but the mute functionality is a bit of a black box to me and it seems Macromedia has forgotten to mention anything about it in the help files.I'm trying to mute a playing movie with actionscript. The closest I got is using myFLVplayback.volume = 0. However volume 0 is not the same as mute and pressing the mute controller will do nothing and leave the volume at 0.I can use the volume slider but I can't stand not knowing how to mute the sound through actionscript.
How to create a mute button in flash so that when its clicked all sounds are muted, however, when clicked again all sounds resume but without starting again from the beginning.
something probably quite simple. fla that I need to add a mute/unmute button to. It would be even better if mute/unmute occured onmouseover, but no doubt this is a more complex question?
I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work. I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.I tried setting the mx VideoDisplay volume to 0 and that does not work.I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.
i have 5 buttons all that do there thing, they have sound on over and hit.but i need a way to mute and unmute everything (including these buttons sounds) iv tried everything. The button changes state to mute and unmute, but the sound still plays for over and hit. This is where I am now. PLEASE HELP!!! urgent for coursework.
1st Frame of main timeline:
var globalVolume:Sound = new Sound(_root) vol = true;
Mute movie clip:
on (release) { if(vol == true) { globalVolume.setVolume(99); gotoAndStop(0)
I have an flv file that i am loading externally and want to start the video of with no sound and let the user click the mute_btn to turn the sound on. I am having problems with the code. the video starts with sound on and i want it to start silent. what do i have to add to my code to make this happen?
I have an flv that is playing through a playback component with the instance name of "player". The whole goal here is to have the audio muted when the file begins, and have an mc button ("noise") allow the user to toggle the audio on and off. I'm not having any video controls on here, just the home-made audio toggle. Here is the code I have:
I have tried switching the 0's to 100's and vise versus, I sometimes can get it to play but then not mute, or mute then not play.I have also tried switching the function to setVolume, with no results. I know I am close, disregard the gotoAndPlay's, it just controlls an animation for the button.
i have an mp3 that plays as background music to my website with a mute button that fades the music in or out. This works using the code below that i found on another site.My problem is i would like to have this music added to an external swf that i could load into my main site in order to decrease the main site file size. When i load swf however, the music doesnt play. the button appears (which is also in the external swf) so i know that the movie is loading but no sound plays.
some_sound = new Sound(); some_sound.attachSound("Kevin Spacey 16bit.mp3"); some_sound.start();
My sound object (below) is working with my volume dragger, but not with the mute button as well. The mute button works without the dragger, but they don't work together.
Code: t1 = new Sound(); t1.attachSound("mysound"); t1.start();
[Code]....
why does the sound not play when this SWF is externally loaded.
I have some background music playing on my website and when I click to play one of my FLV on the site I want to background music to mute. Also when the FLV is finish (complete) the background music back on.
how to do this, I'm a little rustly on this but know it is easy to do, seen it done many many times?
but it is also muting the audio for the flvplayer component. how can i tweek the above script to keep flv component at 100? is it posiible? i have tried a few things now (including local sounds) but it just kills all sounds!!! if it makes it easier all the sounds that i want to mute/unmute are linked from the library with the name "explosion_a" "explosion_b" etc... is there a way of just changing the volume for just the explosion refs and leave the other sounds playing?
i'm trying to pause and/or mute a sound, with little success.i've found out that something like 'sound.play(pausePosition)' might fail on sound-clips with low sampling-rate.however when i try to mute a sound with a 48000Khz sampling rate it simply won't work.
i've tried both -
soundChannel.SoundTransform.volume = 0 - and - SoundMixer.SoundTransform.volume = 0
however both won't mute the sound and when traced return 1.
I am wondering how to make a mute and unmute button is actionscript 3.0. I did it before in actionscript 2.0 but not in 3.0. Here is my actionscript 2.0 code.
var sound = 1; var slashMC = _root.attachMovie("slash","slash01",99); slash01._visible = false; slashMC._y = btn._y; slashMC._x = btn._x;
I tried using a form of "volume = 0" kind of code but one thing it doesn't mute is the sounds I have in buttons (or symbols). Those seem to continue playing even when the mute is active.So whats a form of code I could use to shut off all volume?If there isn't a solution then what can I do to mute symbol sounds?
I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.
No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work.
I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.
I tried setting the mx VideoDisplay volume to 0 and that does not work.
I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.
BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.
I have an flv embedded onto my timeline (it's short, the only video to be played and has an animation synced up to it) but now I need to mute/unmute it. Is this even possible with the video being embedded? If so, how?