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


Similar Posts:


ActionScript 2.0 :: Background Sound And Button Sounds?

Aug 8, 2003

I made 2 sounds: background and button sound.This is the code:

_root.onLoad = function() {
backgroundSound = new Sound(this);
backgroundSound.attachSound("sound_root");

[code]....

View 3 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 :: Stop All Sounds Except Background Music?

Feb 20, 2011

I have created a simple soundboard, with multiple buttons that play sounds upon release. These sounds are embedded within the 'hit' frames of the buttons. Only one can be played at once, so this has been applied to each button:

on (press){stopAllSounds ();}

This all works as planned so far. However, I would like to have a background music feature that would be exempt from the "stopAllSounds" command and thus able to keep playing regardless of what buttons were pressed (or until a designated stop button was pressed).

View 2 Replies

ActionScript 3.0 :: Stop All Sounds Except Background Music?

Jun 17, 2011

I am working on a website that has 11 sounds in one frame. All of the sounds are external, meaning I have to call each one of them every time I want them to play, which happens when I click on specific MCs in my stage. Each MC I click all sounds stop and the new one starts playing. So far, so good.

But therein lies the problem: I want this to happen but keep background music playing. I have no idea where to start from.

View 1 Replies

ActionScript 3.0 :: Random Animation + Random Sounds + Background Music?

Feb 19, 2012

A background music looping in the back, that starts with the opening of the swf and never stops. I think I achieved that with this bit of code :import flash.media.Sound;

import flash.net.URLRequest;
import flash.media.SoundChannel;
bg music[code].....
 
Finally I need to jump from frame to frame randomly to play various animations. For example :Project starts, background music starts playing, we hear random sounds played one after the other, while some animations can be seen on screen, playing in a random order.

View 9 Replies

ActionScript 2.0 :: Make A Music / Sound Control And FX Sounds Control

Mar 21, 2011

im trying to make a music/sound control and FX sounds control,so i have my FX volume level as a variable(FX_vol) and also the Music/sound volume level as a diffrent variable(M_vol),so i set them as sounds that i can use trough coding:

[Code]...

View 2 Replies

ActionScript 3.0 :: Slight Delay In Button Sounds During Sound Stream?

Jan 30, 2009

I have some sounds on buttons:

Code:
var mySound:Sound = new myLibrarySound();
myButton.addEventListener(MouseEvent.CLICK, playSound);
function playSound(e:Event):void

[code]....

... and that works fine. I then have some streaming music:

Code:
var myStream:Sound = new Sound();
myStream.load(new URLRequest("myPath.mp3"));
myStream.play(0);

... and that works fine too. Now, however, the initial button sounds have a slight delay -- I'd estimate about 150-250 ms. It's enough that rollover click noises happen about the time you click, and click noises happen about the time you release, etc. Now, here's the KICKER. It only happens in FIREFOX. CURSE FIREFOX. Seriously. I've been having so many Flash issues in FF3, it just drives me nuts. Firefox and wmode is a pain, Firefox and sound is a pain, Firefox has been crap for Flash development lately.

View 2 Replies

Flex :: Use Music And Sounds In AS3?

Feb 27, 2010

I participate in a important project right now and I have to implement a class that manages music and sound.The project that I'm making is developed in AS3 using the Flex enviroment.Is there a "best approach" or only different ones?

View 1 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.0 :: Mute Only Sounds / Music?

Jan 28, 2010

I am using the Sound class to play both music and sound in my game (.mp3). I am using the:

SoundMixer.soundTransform = new SoundTransform(0);

But, I will need something to mute only sound or only music, this would mute both.

View 1 Replies

ActionScript 3.0 :: Mute Only Sounds Or Music

Jan 28, 2010

I am using the Sound class to play both music and sound in my game (.mp3). I am using the:
SoundMixer.soundTransform = new SoundTransform(0);
But, I will need something to mute only sound or only music, this would mute both...

View 2 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

Sound Stop All Sounds Works / Then Sound Starts Again?

Jan 5, 2010

I am using FLASH CS3.I have gone through many posts, seems to be an issue with many people.Still haven't come across a fix.Website made in FLASH. Flash movie loads and sound works great!I have a button with 'StopAllSounds' action script.[code]When I go back to main page... sound starts up again.Is there a way I can stop all sound regardless of where the visitor goes on the website?

View 2 Replies

ActionScript 2.0 :: Using StopAllSounds(); To Stop All Background Sounds?

Mar 11, 2009

I am using stopAllSounds(); to stop all background sounds when i enter specific frame in my main movie and it works fine but how do i get sounds to continue to play when i exit this specific frame?

View 1 Replies

Sound: Set Different Volumes For 2 Or Multiple Sounds?

Jan 19, 2003

Iam searching vor solution so adjust different volumes for multiple sounds. That means:

Sound1 Volume 100
Sound2 Volume 20

I have tried that with the following script:

DayNature = new Sound();
DayNature.attachSound("Day_Nature01");
DayNature.setVolume(100);

[Code].....

View 4 Replies

ActionScript 3.0 :: Sound Object Or SoundChannel For Various Sounds?

Apr 10, 2010

As I have commented before I am building English teaching apps. I will have music playing in the background, words being pronounced and at times a surprise sentence. All three could sound at the same time at any given point. To build this properly should I use SoundChannel for all of these? 
 
At the moment my code for the music loop is as so. The sound is in the library and exported for AS. Is this code fine or is it better to assign it to the SoundChannel class.

View 1 Replies

Actionscript 3.0 :: Loading Different Sounds With One Sound Object

Jan 9, 2010

I made some sort of MP3 player based on an XML file, and I want to load the next track when pressed on a button. Well that part works, the problem is, when I play the next song, this is what happens:

- The next song plays

- The bar that is normally buffering is already full

- When I skip to a part of the song, it skips to the first song!

How can I "clear" a sound variable and load another one?

View 3 Replies

ActionScript 1/2 :: Sounds Placed On A Movieclip - Saggy And Later On No Sound Will Play

Aug 26, 2009

I have an application in flash actionscript 2.0 that is running with several parts under each movieclips has an animation inside with a voice over. The problem occurs when I test the movie, the voice over/ sounds plays but when I click the pause button and play again the voice over/ sounds, sounds saggy and later on no sound will play.

View 3 Replies

Actionscript 3 :: Flash - Sound - Embending External Sounds In The Swf?

Apr 29, 2011

that have more than 200 sounds , so I cannot just put the sounds in my libray in flash and then instanciate them as class and play them. Because the sound it will play when I click one object is not always the same.I have this function to play background sound , where enters the name of the song I wanna to be played :

public function startMusicBack(music:String):void{
var musicback:Sound = new Sound();
var bgChannel:SoundChannel;

[code]....

View 1 Replies

Professional :: - Sound Has No Valid Device Sound Path Although Exporting Device Sounds Was Requested In The Export Settings?

Jun 30, 2011

I have imported my wav files to my library added them to the down state of my buttons and when I test the file I get (Sound has no valid device sound path although exporting device sounds was requested in the export settings. This sound will be ignored.) I have been surching for an answer but as of yet have found none.

View 3 Replies

ActionScript 3.0 :: Muting Individual Streaming Sounds Vs Global Sound

Oct 22, 2010

how to create a mute button successfully but only with the global sound setting (so all sounds mute or play). What i need to understand is how to use the Sound class to control individual streaming sounds.

I have 3 sounds and 3 buttons. The 3 sounds correspond to clapping, vocalizing, and the instrument playing, all of the same rhythm. I want the user to have the ability to hear all 3 at once and toggle on and off (muting, not actually stopping) each sound via the respective buttons.

I cannot call the sounds dynamically, because I need them embedded (streaming) to sync graphics with them (the names of the beats change color with each drum beat) and need to see the sounds graph in the timeline. What I want is for all 3 sounds to start simultaneously, all syncing with the same graphics on the stage, and for the buttons to toggle mute/unmute for each individual sound, so that the user can hear them all, only 2, or just 1 at any point, without ever stopping the looping sounds.

This is the code I have that is working for muting all the sounds, but I have no idea how to target the individual sounds instead. The following is only for one button, but there will be 3 buttons, one for each sound:

Actionscript Code:
function setMute(vol){var sTransform:SoundTransform = new SoundTransform(1,0);sTransform.volume = vol; SoundMixer.soundTransform = sTransform;}var Mute:Boolean =

[Code]...

I realize the SoundTransform is what applies it globally. How do I reference each sound individually?

View 2 Replies

Flash :: Audio - Using One Sound Channel To Play Through An Array Of Sounds

May 26, 2011

I Am wondering if is possible to use one sound channel to play through an array of sounds? Perhaps by using a complete event or other means?

View 1 Replies

ActionScript 3.0 :: Code To Stop Previous Sounds / If Click On New Sound

Dec 23, 2011

[code]I am making a soundboard and I need the code to stop previous sounds if I click on a new sound

View 3 Replies

Flash :: Professional - CS3 / CS4 Sound File Sounds Terrible - It Crackles And Sometimes Stutters A Bit

Jun 12, 2010

I am trying to create a soundboard and I have all my buttons and stuff, the only thing left is to put the sound files in. However, I have tried adding them to the library and dragging and dropping them over the HIT option like I usually do, but when I export the swf file, the sound file sounds terrible, it crackles and sometimes stutters a bit. I have tried setting these sound files to mp3 and raw in adobe options but with no luck. I am using actionscript 2.0 if that has anything to do with it. Also, I need these files embedded, not just linked.

View 2 Replies

ActionScript 2.0 :: Function Conflict - Loop Sound Works But The Other Sounds Don't Play

May 5, 2004

How can I change the following so it won't conflict with sounds inserted manually in keyframes. Currently when this function is active, the loop sound works but the other sounds don't play..

[Code]...

View 13 Replies

ActionScript 2.0 :: Multiple Sounds - Creating Separate SWF Files To Represent Each Sound

Sep 20, 2002

I've created a small application that links various Sound Clips to corresponding Sound variables, and the individual start and stop commands work fine. However, when I try altering the volume, the controls affect all the sounds in the movie. I'd like to refrain from creating separate SWF files to represent each sound, but I will if I have to.

View 1 Replies

ActionScript 3.0 :: Add Sounds To A Button?

Feb 9, 2009

I would like to add sounds to a button, so when I roll over it, it plays the sounds. The thing is I would like the sound to be programmed in AS3, not imported like normal.

View 1 Replies

ActionScript 3.0 :: Sound Continue Through Frames - Flash Project Restarts And Overlaps And Sounds Incredibly Crappy

Apr 24, 2009

My problem is that whenever I switch frames the music in my flash project restarts and overlaps and sounds incredibly crappy. Is there any way I can make it so that my music opens on my first frame and continues playing through all subsequent frames? Oh and by the way here is the code I'm using:

[Code]...

View 5 Replies

ActionScript 2.0 :: Changing Sounds Via A Button?

Jan 9, 2003

I am making a website, and have 5 loops that I would like to use.I need a button that will change between those 5 loops.I also need a button that will mute and unmute all sounds.

View 1 Replies







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