ActionScript 2.0 :: Keep All Sounds At The Same Volume?

Aug 30, 2011

On a movieclip I have a sound that plays whenever the movieclip is dragged over the right object. It works but the problem is that it lowers the volume of the background music (which I don't want). I think that if it were possible to change the type of sound using ActionScript to an Event sound it would work.Here is the code:

ActionScript Code:
unlocking = new Sound(this);
unlocking.attachSound("unlock");
unlocking.start();

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Control The Volume Of All Sounds In The Movie?

Jan 22, 2009

I need to control the volume of all sounds in the movie even if they were in the timeline so they do not have an instance name,by AS3.0 code?

View 5 Replies

ActionScript 3.0 :: Global Volume Control For All Sounds In A Swf?

Aug 20, 2009

Does anyone know of a way to adjust the volume of all the sounds in a swf? I'm looking to build a volume controller that changes the audio level of the swf.

View 1 Replies

ActionScript 2.0 :: Adjust The Volume Of Two Sounds Independently

Mar 12, 2007

I'm working on a project in which sound plays an important part. I want to be able to adjust the volume of two sounds independently, �nd have access to the position in the soundfile. The code below plays 2 soundfiles ("L36 Bass.wav" & "L36 Perc.wav"). The sounds are declared as 'new Sound' with qualifiers("L36Bass" and "L36Perc" recpectively) in line 03 & 04 within empty movieclips, to allow individual volume-adjustments. The volume-mix between the 2 is then governed by the x-mouse position (line 10 - 16):

[Code]...

This works just fine (as long as the WAV-files are in the library and the option 'Export for Actionscript' is selected). However, when I try to access the position within a soundfile with the statement SndBass.position; this results in an 'undefined-error'. When I remove the qualifier in line 03, and go for 'SndBass = new Sound()' in stead of 'SndBass = new Sound("L36Bass")', the property SndBass.position is available, but, as expected, the individual volume-control is lost.

View 4 Replies

ActionScript 2.0 :: Change The Volume On Individual Sounds?

May 17, 2007

how to change the volume on individual sounds. I have the sounds linked from the library but when I use the setVolume command in actionscript, it lowers the volume on ALL the sounds and not just the sound I'm trying to target.

View 1 Replies

ActionScript 2.0 :: Sounds With Linkage Names Volume

Nov 25, 2002

here is a more detailed version of my previous post. I have multiple buttons with random sounds being played on release through linkage of those sounds. Some buttons have 3 sounds, some have 2, which are played randomly. I know there are scripts for volume of each individual sounds, but that won't help here, I have many sounds that need to be controlled by volume buttons. I had 2 ideas: either tell me I can do them or tell me I'm stupid.

Give each sound the same instance name, and have a script increase the volume of that instance, therefore inceasing the volume of all the sounds -OR- Have the code that changes the volume of each sound, and have it do just that: increase the volume of each sound. In other words, have that script for each individual sound, over and over again for each sound (lots of scripting).

View 1 Replies

ActionScript 2.0 :: Set The Volume On A Specific Sound Without Affecting Other Sounds?

Apr 22, 2010

I'm having an issue with setting the volume on my sounds.

I have a number of movieclips, that when clicked on, play a sound. I have created an Event Handler for the movieclip, that when it is clicked on, the sound plays, but the setVolume is higher.

I also have background music, set a bit lower than the rest. Here's the issue, when I click on the movieclip that makes it's specific sounds go higher, the background music goes higher also.

How do I set the volume of my movieclip without it changing the volume of the other sound/s?

Here's the code:

Quote:

gameMusic.setVolume(50);
gameMusic.start(0, 500);

[Code]....

I want gameMusic to stay at 50, but it goes to 300 when I click on shark. Why would that change it?

View 1 Replies

ActionScript 2.0 :: Make Volume Slider For Those Sounds Inside Movie Clips

Apr 13, 2003

I have seven loops in total. I imported them into the library. i've put each of them in a seperate movie clip with the names loop1,loop2,.In those movie clips, the first (key)frame contains the action stop(); . The second frame is a keyframe too and from here on the sound starts. And of course they loop.Okay, now the buttons to control the movie (Prev, Stop, Play, Next) work fine, but let me explain the system i used. I used a var loopnumber and everytime you click Next or Prev, it '+'es 1 or '-'es 1. I also set a variable number_to_play = "_root.loop"+loopnumber, so you would get _root.loop--number--, where --number-- is 1,2,3,4,5,6 or 7. To actually play the sound, i used tellTarget(number_to_play) {gotoAndPlay(2)}.That's why i added stop(); to the first frame of those clips.how can i make a volume slider for those sounds inside my movie clips ? I've checked this forum already for questions like this but they don't use the system I use.

View 4 Replies

ActionScript 2.0 :: "Mute All Sounds" Script And Volume Bar?

Mar 25, 2006

getting the script that stops all running sounds in the flash movie?I want to make a button that when pressed all sounds will stop, and when pressed again all sounds play again.Also, I need to know how to make a volume bar to increase or decrease the sound volume. Can any one give me a simple way to do these 2 things?

View 5 Replies

ActionScript 3.0 :: Simple Volume Slider That Controls The Master Volume Of The Entire Swf?

Oct 6, 2009

does anyone have an example of a simple volume slider that controls the master volume of the entire swf?

View 1 Replies

Flash :: Volume Slider - Volume Doesn't Change Until Mouse Over?

Nov 21, 2009

I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is set to.Is this a flash bug, or am I missing something? Here is the affected code (code for other buttons/functions omitted for brevity):

var song_initvolume:Number = 100;
slider_1._x = groove_1._x + song_initvolume;
playSong(0,song_play);[code]....

I'd like to be able to set the volume at say 50%, but the above mentioned behavior happens each time.

View 2 Replies

Flash :: Reverse Sound Volume Math For Volume Slider?

Feb 1, 2010

I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :(

Dragging the slider down will make the sound louder, while dragging up lowers it.

Here is my code below dealing with the volume slider.

[Code]....

The (-4) is an offset value so when you drag it all the way to turn it off, it's 0 and not 4. I need to reverse this somehow, so the traces above will swap... going down will make userVolume = 4 and going up will make it 30.

View 4 Replies

ActionScript 2.0 :: Use With Music Is Affecting All Other Sounds - Button Sounds And Background Sound

Apr 16, 2010

I followed the mp3player tutorial (part 3) from [URL] and got it working fine. Only problem is that the setVolume I'm trying to use with my music is affecting all my other sounds - button sounds and background sound. I'm aware of the createEmptyMovieClip/attachSound approach and got it working on my other sounds. But Lee's tutorial-mp3player is using a slight different technique, and so my normal approach doesn't quite work.

[Code]....

View 7 Replies

ActionScript 3.0 :: Synchronize Sounds Perfectly To Do A Kind Of Audio Mixer Using Different Sounds?

Feb 7, 2011

I want to synchronize sounds perfectly to do a kind of Audio Mixer, using different sounds. [URL] does it perfectly, I've been researching and researching and I just don't know how to do it! How does [URL] synchonize audio so perfectly? you can even change sounds and the new ones will come on time! How do I do that? Is it just Action Script? or something else?

View 1 Replies

Actionscript 3 :: Volume Controls - Volume On Or Off Through The Games?

Apr 12, 2012

I've got a serious of games which in turn load off a main main swf.I have mute and unmute buttons on the main menu and the same buttons in each game.When I unload/load a game I want the volume to stay as it is so they player doesn't have to keep turning the volume off. AudioOff is the button shown when the volume is off and AudioOn is the button shown when the volume is on.The code I've got now keeps the volume on or off through the games but the buttons aren't showing up correct with this code..

if (SoundVolume.volume == 1)
{
AudioOn.visible = false;[code].....

View 2 Replies

ActionScript 2.0 :: Volume Slides But No Volume Change?

Sep 10, 2011

I converted the slider bar and slider button to buttons. Then, I made the slider button into a movie clip.

Here is the code I placed while slider button was a button:

Code:
on (press) {
startDrag(this, false, left, top, right, bottom);
}

[Code]....

It seems right to me but I don't know. The movie button slides down the slider bar but it just doesn't affect the volume. Going to try to attach my FLA to offer better insight. Just tried to upload it and no matter if it's FLA or zipped FLA, it says it failed.

View 1 Replies

ActionScript 2.0 :: CS3 Getting Sounds To Start Again After Using Stop All Sounds

Nov 29, 2009

I have a film with 4 scenes in it: Here's a link to the film and as you can see the film does not play the music the second time because of the StopAllSounds function which is probably the wrong code to use. The first scene is just a button with 1 frame, a stop action and a music clip. The second scene is the film. The third scene is the credits fourth scene is a Play again button. I have a Stop all Sounds action on the fourth scene because if I do not use it and I press the Play Again button, the music from the first song keeps playing but also the music from the film starts up again so it starts to play twice. What I want to know is, how do I get the music to stop at the end of the film but start up again once I hit Play Again?

I am using Flash CS3 if that helps and using Actionscript2.

View 2 Replies

ActionScript 3.0 :: Set The Volume To Something Like 5/10?

Jul 31, 2009

i have a Audio button that I have set up and it is all working finebut I would like to set the volume to something like 5/10.and I thought I had is set up right but it does not seem to work.can anyone see what I am doing wrong(note - I get no errors but also no sound control)I should also mention that I don't need the user to control it other than just
on and off.

Code:
var loadSnd:URLRequest = new URLRequest("ax Mr .l..mp3");
var thisSnd:Sound = new Sound();

[code]......

View 0 Replies

ActionScript 3.0 :: Possible To Cap Volume?

Oct 24, 2009

I have a tower defense game that I am working on and I'm in the process of adding sounds. Each tower plays its own fire sound when it fires. However When I have 5+ towers of the same type firing at the same time the volume gets louder.

Here is my game as is, the sounds are only in testing stage right now and I am aware that they can get annoying with the current set up.[URL]..

Most noticeably are the air towers. if you feel like listening play my game and first place 1 Air (blue) tower on screen. When the first air wave starts (lvl 4) hear the one tower firing alone and then during this stage add a 2nd tower and the volume almost, if not, doubles.

View 2 Replies

ActionScript 2.0 :: Getting More Than One Volume Control?

Jan 13, 2009

using action script2 flash cs3, and i need more than one volume slider/control and each control needs to be assigned to one sound, atm i have more than one volume slider but they all control the same sound!

View 1 Replies

ActionScript 2.0 :: CS3 Set Volume Slider To 50%?

May 11, 2009

I'm a designer that inherited a project with a volume slider. I'm not that good with actionscript yet and haven't been able to figure out the code. The volume and slider starts at 100%, and I need it to start at 50%. Can you tell me how to set both the volume and slider at 50%? I'm sure it is a simple solution but I can't figure it out. I tried a few things but have not been able to get it to work correctly in both the volume level and start position for the sliderHere's the code on the 2nd frame of the mc:

Code:
stop();
var NiVol:Sound = new Sound(_root.Container);

[code].....

View 4 Replies

ActionScript 3.0 :: Pan/Volume Based On X,Y?

Sep 16, 2009

Trying to get the children of lighterBoard to pan to different channels based on their Y coordinate.(children on the left side of the screen play left channel, children in the middle play both, right side, right channel etc.)

volume works on X for the lighterBoard.

Having trouble with Pan and getting it to look at the children.

}
function playVol01() {
trace("Swoosh Sounded");
Vol01Channel=Vol01Sound.play();

[Code].....

View 1 Replies

Use EBS Volume From Stock FMS Image On EC2?

Jul 21, 2011

I'd like some changes to the config to be persisient though.

I've created an AMI (built using the stock CenOS 5.5 and FMS 4.02 AMI's Kernel ID and RAM disk ID) but when I launch it says the "AMI and kernel are incompatible" or similar.

View 6 Replies

ActionScript 2.0 :: Why Isn't Volume Changing

Oct 11, 2008

Why isn't my volume changing? the volume amount is correct, but the volume doesn't change to that amount.[code]

View 4 Replies

ActionScript 2.0 :: Two Buttons To Set Volume

Jan 14, 2009

My site is nearly ready, but I still want to add two buttons: one to set the volume to a normal value; another one to set the volume to 0 (like a mute button). I don't have a background music, I just want these two buttons to make effect on several other buttons with "click" sounds attached.

I have my buttons ready, and tried using this code for the "no sound" button:

ActionScript Code:
on (release) {
set.volume(0);
}

[Code].....

View 3 Replies

ActionScript 3.0 :: ComputeSpectrum If Volume Is 0?

Jul 31, 2009

I'm building a media player with a sound visualizer using computeSpectrum(). When I adjust the volume, there is no longer any data for the visualizer. Does anyone know a way to adjust the volume of audio, but still access audio data using computeSpectrum() as if the sound were still audible?

View 3 Replies

ActionScript 2.0 :: FMX: Boosting Volume Above 100

Feb 20, 2003

I know how to make a slider that controls the volume from 100 to 0. But is there a way to boost the volume in Flash?

I want the movie to open with the volume slider at 50% (visually) but the volume level (audibly) to be 100%. Then lowering the slider to 0% will cut the audible volume to 0 but raising the slider to 100% will boost the volume audible to 200%.

View 6 Replies

ActionScript 2.0 :: Why Can't I Do Volume Sliders

Dec 15, 2004

I've been trying to create a volume slider for about two hours now and it just doesn't work. I followed Ilyas' slider tute and Kirupa's volume control tute both to the letter and now no sound loads, the slider doesn't control anything and it sticks to the mouse when you let go i.e. it still drags left and right across the slider after you release the mouse button.I can't show you my code unfortunately as I just got really angry and wiped it.Could someone please either show me exactly how to load a sound and control it's volume in one tute (Kirupa uses a different method from the "load sounds using AS" tute to load his sound in the volume tute but he doesn't explain it. I don't want his source .fla+mp3.) or make me a .fla that loads a sound called "music" (linkage name) and controls it's volume.

View 3 Replies

ActionScript 2.0 :: Reduce The Volume?

Mar 2, 2006

My problem is... I import two sound files and give the linkage name snd1 and snd2. In the first key frame I add this

sound1 = new Sound();
sound2 = new Sound();
sound1.attachSound("snd1");

[code]....

View 3 Replies

ActionScript 2.0 :: Set Global Volume To Zero?

Mar 16, 2006

i have a button, and i need to to see the volume to zero when this button is pressed, and when this button is pressed again, the volume goes back to 100

i have different pieces of audio all around my flash presentation so i just need a global volume that sets my volume to 0 and also to a 100 when pressing the button.

[URL]

View 5 Replies







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