Flex :: How To Mute The Speakers

Jan 18, 2011

In the following code how to mute the speakers

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"

[code]....

View 1 Replies


Similar Posts:


Actionscript 2.0 :: Mp3 Player - Keep The Mute State Unchanged When The Songs Are Playing Until The Mute Button Is Pressed Again

Feb 3, 2009

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.

View 6 Replies

ActionScript 3.0 :: SoundChannel Null When No Speakers?

Sep 29, 2011

I was debugging sound in an app and decided to make a little test case as I kept getting odd errors... well I just moved to a new desk yesterday so hadn't hooked up speakers yet. Here's the test:
 
var backSound:Sound = new bgSound();
var backChannel:SoundChannel = backSound.play(0, 999);
trace(backChannel);
 
bgSound is just a library sound... if my speakers are unplugged from the sound card backChannel returns null. If speakers a plugged in backChannel is a soundChannel object.

View 1 Replies

ActionScript 3.0 :: Animated Speakers For Mp3 Player?

Jul 31, 2011

this is my first time making anything on flash. I have cs5. I've designed an mp3 player control menu as well as a big speaker in photoshop and put everything into flash. I followed a tutorial which shows how to animate a speaker in real time using the song that's playing as a reference for how much the speaker animates.

the code for the speaker bounce is this

bounce.width = ( Math.round(channel.leftPeak * 8) ) + 259.10;
bounce.height = ( Math.round(channel.leftPeak * 8) ) + 259.10;

everything works fine on my mp3 player except the speakers wont animate.

259.10 is the original size of my speaker which is supposed to change size according to how booming the song playing at the moment is.

the only difference that i can see between my file and the tutorial's file is that the speaker in the tutorial says "drawing object" under properties and mine says "shape"

does this have anything to do with why the width and height of my speakers are not changing as the code says it should?

View 3 Replies

ActionScript 3.0 :: Sound Channel Won't Construct If Speakers Are Not Present

Sep 1, 2009

I built an application on Windows XP and Vista. And it seems that the sound channel constructor decides not to run with no speakers attached. Runs fine when headphones are plugged in, but when no speaker device is present the Sound object is constructed, but the Sound Channel never seems to make it.

I did some testing and even the most basic Sound Constructor fails to create the default sound channel if there are no speakers connected.

In the following example channel turns up as null if no speakers are present on a Windows machine. I/O Error doesn't throw anything for me either.

This is a modified version of the example from the Adobe Docs:

Code:
private var channel:SoundChannel;
public function sound_test(){
var request:URLRequest = new URLRequest("audio.mp3");

[Code]...

View 3 Replies

Actionscript 3.0 :: Sound Channel Won't Construct When Speakers Are Not Present

Aug 26, 2009

I built an application on Windows XP and Vista. And it seems that the sound channel constructor decides not to run with no speakers attached. Runs fine when headphones are plugged in, but when no speaker device is present the Sound object is constructed, but the Sound Channel never seems to make it.

View 1 Replies

ActionScript 2.0 :: Use The Mike In Flash, Don't Want The Sound Forwarded To The Speakers

Aug 13, 2007

I'm using the activityLevel of the Microphone (because its the only thing, it seems, Flash can use from it) to perform certain actions, based on how loud the Microphone activity is.
That works fine.However, all sound picked up by the microphone is forwarded to the speakers.I need the speakers for sound F/X so I can't just turn them off. But I really don't want the microphone audio to be played over them.I tried using setGain(0); but that not only killed the mike sound to the speakers but the ability to sense sound from the mike at all.

I tried setSilenceLevel(0); and setSilenceLevel(100);
But that didn't seem to effect it either.
setUseEchoSuppression(false); and setUseEchoSuppression(true); also had no positive effect.

So... Is there any actionscript left to try?I just need to prevent the speakers from repeating what the computer hears from the Microphone, while still allowing Flash to read and react on varying levels of activity from the microphone.I recieved 6 pages from the keyword microphone. None of them addressed or came near to addressing the problem I'm having.

View 2 Replies

Flex :: Can't Mute A NetStream?

Apr 26, 2011

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.

View 1 Replies

How To Mute Entire Flex Application

Aug 5, 2009

I'm playing several video streams in my flex application. Plus there are sounds of application UI. Is there possibility to mute entire application or I should silence each of potential sound sources?

View 3 Replies

ActionScript 3.0 :: Mute Button Toggled To "mute" By Default?

Aug 5, 2010

So i have a flv playing on a flash load. I need the mute button toggled to "mute" by default.

Code:
my_FLVPlybk.muteButton = mutebtn;

that is the mute button instance i am using.

View 1 Replies

Media Server :: Flash Media Live Encoder Doesn't Recognize System Speakers?

Jan 6, 2012

When using Adobe Flash Media Live Encoder, it doesn't seem to recognize my system speakers, so I can't record system audio.

View 1 Replies

IDE :: How To Mute The Sound

Sep 25, 2005

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.

View 6 Replies

Create A Mute Button?

Feb 1, 2002

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.

View 4 Replies

Fla That To Add A Mute / Unmute Button

Jan 10, 2011

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?

View 2 Replies

ActionScript 3.0 :: Mute All Sounds?

Sep 16, 2008

anybody knows the AS to mute all sounds?

View 2 Replies

Mute Button Not Working?

Aug 9, 2009

This is a simple mute toggle button for an mp3 player.
 
I first var sound: Sound 
Then I have the function 
//mute the current sound
function muteSound ()

[Code]...

View 3 Replies

ActionScript 3.0 :: Mute All Sounds In A Swf Except For One?

Mar 31, 2010

To stop all sounds in a swf, I'm using the following code.
 
var transform1:SoundTransform=new SoundTransform();transform1.volume=0;flash.media.SoundMixer.soundTransform=transform1;

This mutes all sounds. Now there is an issue, I want to stop all sounds but one (i.e. "music.mp3").

View 1 Replies

Actionscript 3 :: Way To Mute A Movieclip

Nov 25, 2010

I load a movieclip in another project. this loop.swf has music in it.[code]...

After some seconds, I want to unload or easier "mute" this clip.

When I unload it, even when I load a new clip in it, the music continues to play.

View 3 Replies

As2 :: Mute Sound In Flash?

Feb 10, 2011

I want to mute the sound not pause....i already using setVolume script on other buttons.

View 1 Replies

Actionscript 3 :: How To Mute The Flv On Start Up

Jun 15, 2011

I'm trying to work on a AS3 file with a video in it.how to have the flv muted on start up?So far I have this script:

import flash.events.*;
import fl.video.*;
//-----------------

[code]....

View 1 Replies

ActionScript 2.0 :: How To Mute Buttons

Jan 6, 2010

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)

[code]...

View 6 Replies

ActionScript 3.0 :: Mute In The Beginning Of A Flv?

Sep 23, 2010

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?

[Code]...

View 0 Replies

ActionScript 2.0 :: Mute Flv Not Working?

Sep 4, 2007

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:

player.volume = 0;
noise.onRelease = function(){
if (player.volume = 0){
player.volume =100;

[code]...

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.

View 3 Replies

IDE :: Mp3 Fading Mute Button?

Aug 2, 2009

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();

[code].....

View 1 Replies

IDE :: Mute And Dragger Not Working Together?

Oct 11, 2009

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.

View 1 Replies

ActionScript 2.0 :: Play FLV Mute All Other Sounds?

Jun 8, 2009

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?

View 2 Replies

ActionScript 3.0 :: Mute All Sounds In A Swfs Except One?

Mar 31, 2010

To stop all sounds in a swf, I'm using the following [code]...

This mutes all sounds. Now there is an issue, I want to stop all sounds but one (i.e. "music.mp3").

View 3 Replies

ActionScript 2.0 :: Globalsound Mute - But Not Flv Player

Jan 9, 2011

i am using this script to mute all the sounds in my movie...

code: Code:
level = 100;
globalSound = new Sound();
globalSound.setVolume(level);
audioToggle_mc.audioOn_btn._visible = false;
[Code]...

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?

View 2 Replies

ActionScript 3.0 :: Mute Button For Embedded FLV?

Dec 19, 2008

I need to create a mute button for an embedded FLV file.There is no separate sound file for me to control, so I'm unsure

View 3 Replies

ActionScript 3.0 :: Pause And/or Mute A Sound?

Sep 2, 2008

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.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved