Make 2 Simultaneously Playing Sounds?

Nov 24, 2009

I would like to make a small player where two sounds* can be compared.

- PLAY and CHANGE buttons

- On pressing PLAY button, two sounds (Sound-A and Sound-B for example) should play simultaneously (at the same time).

- While those two sounds play, Sound-B should be MUTED and Sound-A should be hear.

- On pressing CHANGE button, the situation changes: Sound-A is muted and Sound-B can be hear. And vice-versa.

*two sounds: both songs are the same, but one of them is remastered

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Make Buttons For Website That Have Sounds Playing On Them During The Over States

Jan 20, 2005

I'm trying to make buttons for my website that have sounds playing on them during the over states. But when you move the mouse off the button, the sound keeps playing. Run that mouse everywhere, the sounds are all playing, it's chaos. How do I fix a button so that the sound stops playing when the mouse moves off?

View 4 Replies

IDE :: Playing FLV And SWF Simultaneously

Mar 25, 2009

I have a 'master' SWF file that calls in about 6 external .SWF containing graphics. This 'master' also pulls in external .FLVs (some that are video+audio, some that are audio-only) and makes the file the contentPath of my FLVPlayback component. On some of my Point of Interest buttons (numbered buttons that direct the user to view content), both FLV and SWF are being called. Locally (on my own computer), the videos sync together perfectly (graphics changing to match the audio description). But when i test the presentation on a 'testing server' (i.e. the internet) There is a pronounced lag between the SWF and FLV.

My question is: How do I code the AS2 to NOT play either the FLV or the SWF until BOTH have loaded completely? I'm looking for ideas and pseudo-code right now to point me in the right direction. I'm leaning in the direction of an event listener coupled with getBytesLoaded and getBytesTotal. Probably simple as an if statement with a listener and getBytes function?

View 1 Replies

Playing 2 Movies Simultaneously?

Aug 22, 2009

to load 2 movies simultaniously on the same page but in 2 different HTML layers? see example here: [URL] notice the menu on the bottom of the page. it seems as though thats a seperate movie... (try resizing the browser window to get a better idea...)

View 1 Replies

ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?

Apr 10, 2011

I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
 
This is the code that creates one of the sound objects

[Code]...

View 3 Replies

Flash - 2 Movieclips Not Playing Simultaneously Located On The Same Frame Nested Withing A Movieclip?

Jan 30, 2012

I have two movieclips on the same frame but on different layers located within the movieclip. The first movieclip plays just fine. However, the second one isn't going ahead even a single frame. The code that I have mentioned below is located withing the second movieclip containing background image. And I think this code is causing the issue because when I remove this it plays perfectly fine. The function of this code is to automatically re-size background image with the browser dimensions. The whole code just worked fine on the main timeline.However, when I shifted it inside a movieclip its causing an issue.

//set stage for FBF
stage.align = "TL";
stage.scaleMode = "noScale";

[code]....

View 1 Replies

Pageflip 2.25 - No Sounds Playing On Preview

Sep 10, 2010

The free version over at [URL] displays sound in their online demo, but when I download the Fla. and preview it out of CS4 everything works but there are no sounds playing when I flip. SoundOn - true has been set, and I cant work out why it isn't working. No settings have been changed apart from soundon. I have tried with their older version 2.14 and that works fine.

View 4 Replies

ActionScript 3.0 :: Loading Sounds Before Playing?

Jan 16, 2009

There are 8 letters in the menu. Each letter provides a linkwhen clicked and a sound when rolled over. The letters will NOTAPPEAR on stage until their corresponding sound is completedloaded. I did this to avoid distortion during playback. The soundbit are pretty small as well. Anyway, the sounds are still distorted during playback and Idon't know why. They are all MP3. HELP PLEASE!! Here's the scriptfor one of the eight letters (movieclips) only to limit size you'llhave to look through:

public function Index() {
var D:MovieClip = new dMC();
D.x = 100;

[code]........

View 4 Replies

ActionScript 3.0 :: External SWF Sounds Playing Over Each Other?

Aug 26, 2009

Does anyone have any clue on how to unload an external swf with all its sounds?

View 1 Replies

ActionScript 2.0 :: Playing Multiple Sounds From Different MCs?

Sep 3, 2010

Working on a project with multiple sounds (all contained in different MCs) played by different key board events. Most of it works, but when I try to use simultaneous 2 button combinations to call upon a different sound, all 3 sounds play at once. The 3 sounds are as follows: the sound associated with the first button, the sound associated with the second button, and the sound associated with the 2 button combo. I've made several different true/false statements to override different events and states, but they don't affect the playing of the MCs. I've also tried using attachSound but I don't like the results I'm getting from that either.

How can I stop the first 2 sounds from being played, so only the 3rd sound can be heard?

View 2 Replies

IDE :: Flash Hiccupping When Playing Sounds?

May 4, 2010

I'm working on a game in Flash, and everything's going along great, until I start trying to play sound effects. The minute I start trying to play a sound, the whole app seems to "hiccup", frames get dropped, and things generally get ugly for a little bit. I'm loading sounds by copying them into my Flash CS3 library, exporting them for ActionScript with a Base Class of flash.media.Sound. I'm playing them through a class that looks a little something like this...

Code:
public class SoundPlayer {
private var _mySound:Sound;
public function SoundPlayer() {
_mySound = new ExampleGame.SoundFromLibrary();
} public function playSound() {
_mySound.play();
}}

This all seems pretty straightforward, so I can't figure out why Flash is complaining when it first tries to play the sound. The sound itself is a 40k. mp3 file that lasts about 2 seconds. Not the shortest sound in the world, but I'm sure I've heard larger sounds in games.

View 3 Replies

Actionscript 3 :: Playing Multiple Generated Sounds

Sep 6, 2010

Inspired by Andre michelle, I`m building a tone matrix in AS3.I managed to create the matrix and generate the different sounds. They don´t sound that good, but I´m getting there One big problem I have is when more than one dot is set to play, it sounds just horrible. I googled a lot and found the additive synthesis method but don´t have a clue how to apply it to as3.anybody out there knows how to play multiple sounds together? any hint?

View 2 Replies

ActionScript 3.0 :: Sounds Still Playing On Mouseclick When Do RemoveChild?

May 16, 2010

I've got 2 different movieclips, one named playScreen and one named gameOverScreen. I've got a function in playScreen that plays a gunshot everytime I press the left mouse button, but when I do removeChild on playScreen and addChild on gameOverScreen, the gunshot sound still plays when I press the left mouse button.

View 3 Replies

ActionScript 2.0 :: Playing Sounds From ExternalSound.swf On Frames

Mar 13, 2010

I have an animated flash site with lots of small mp3s placed directly on frames to match the animations.URL...Placing sounds on the frames added to the overall file size but was fine till I tried to create a sound off/on button - it seems that to manipulate ALL sounds they need to be placed into a movieclip.After followind a Kenny Bellows sound tutorial I placed all the little mp3's in an external file externalSoundObjects.swf.[code]I can place the mp3's back on the animation's timeline if anyone knows how I can get a sound on/off button to stop ALL sounds (incl. in child.swf's).Otherwise if anyone knows how to get the external sounds working I think I can then create a sound on/off myself

View 7 Replies

ActionScript 3.0 :: Flash Playing Multiple Sounds At Once?

Jan 16, 2012

i seem to be posting a lot at the moment but i am trying to get my Flash Skills up to date, hope im not annoying anyone too much. Basically i have a small project where pressing a button will trigger a sound, So when i click 'Button1' it plays the sound assigned to 'Button1', I have done this like the following.

[Code]...

Eventually i am going to have 20 different sounds, i know i need to probably assign each sound to its own individual sound channel. i tried manipulating the for statement to say something like var [i]Channel = new SoundChannel; in the hope that it would assign a number next to the SoundChannel thus making it unique,

View 5 Replies

ActionScript 3.0 :: Playing Sounds Backwards (reverse) In Flash?

May 5, 2011

I am looking anywhere to find a way to play sounds in reverse wih flash.

View 5 Replies

ActionScript 3.0 :: Playing Sounds From Other Domains Vs Security Sandbox?

Oct 26, 2011

I put my music player to one domain and music files to the other one (i.e.:[URL]. As the player's setup is via xml file I just set there to look for that .mp3s with given url. I thought I need to put some crossdomain.xml to the domain with mp3s but meanwhile my music player doesn't need it and loads all the music from other server and plays.. So, do I need some policy file or so as I thought, or maybe my thoughts are outdated?

View 9 Replies

ActionScript 3.0 :: Additive Synthesis - Playing Multiple Generated Sounds?

Sep 7, 2010

Inspired by Andre michelle, I`m building a tone matrix in AS3. I managed to create the matrix and generate the different sounds. They don�t sound that good, but I�m getting there One big problem I have is when more than one dot is set to play, it sounds just horrible. I googled a lot and found the additive synthesis method but don�t have a clue how to apply it to as3.

View 2 Replies

ActionScript 3.0 :: Stopping Sounds From Playing In Embedded Video Clip?

Jun 10, 2011

I have three embedded video clips that are inside of movieClips. They I have buttons that take you to a framelabel where those movieClips are located. Each movieClip containing each movie are on separate frames. (See attached image)

When I click on any of the buttons that take me to any videoClips other than the first one, make the audio from the previous embedded Video on the timeline in front of the one I went to , start to play.

I have SoundMixer.stopAll();

on everybutton before I tell it to go anywhere. what to do to only get audio from the video clip in that section of the timeline to play.

View 0 Replies

ActionScript 2.0 :: Make Blast Loud Without Changing Value Of Other Sounds?

Jul 24, 2009

I'm making a game in AS2. And I have made it so when explode is triggered it plays a "BOOM" sound, named blast. I wanted the "BOOM" sound to be louder the bigger the bomb, which you can charge up. To do this I have put...

Code:
variableName = new Sound();
variableName.attachSound("blast");
variableName.setVolume(player._width*0.75);
variableName.start();

And this works fine. My only problem is that I have other sounds in my game and this changes the volume of EVERYTHING in the game each bomb. How do I make "blast" louder the wider the "player" is, without changing the volume of the other sounds?

View 3 Replies

Actionscript 3 :: Make A Virtual Folder Hierarchy That Contains Images And Sounds?

Jul 6, 2010

Is there a program/method to use with actionscript-3 in order to make a virtual folder hierarchy that contains my images and sounds and traverse it at runtime in order to select what to load on the SWF?

View 1 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 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 :: 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 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

Make Audio To Stop Playing Soon After Loading?

Feb 25, 2010

I am new to Flash action script and i have problem with action script code. Even though i comment the mvMyVid.play(); still the audio plays for fraction of second and stops.[code]...

View 1 Replies

ActionScript 3.0 :: Make A Swf Fade Out Completely After Playing?

Apr 9, 2011

I am so stuck on the simplest of transitions! I've just started using AS3 everything works fine so far, but I have been looking for weeks for a solution to this.... Please help me!!

I have a simple illustration with 4 buttons. Each button calls in a different SWF (movie) . The SWF fades into place and when you click on a different button it is removed and a new one fades into the same position.

My question is: How can I make the swf fade out completely after playing without pressing another button, so that I can see through my illustration in the background?

[Code]...

View 2 Replies

ActionScript 2.0 :: Make The LoadMovie Keep Looping After Playing Once?

Sep 22, 2004

How can I make the loadMovie keep looping after playing once?

loadMovie("leftback_a1.swf","videoHolder");

I want leftback_a1.swf to keep looping and playback after it finishes.

And how can I control the playback of the leftback_a1.swf? Meaning if I have a button to click to stop it and it will pause and a button to click to play and it will play from where it paused.

View 2 Replies

ActionScript 2.0 :: In That External Swf Want To Stop It From Playing And Also Make A Play_btn Appear S?

Jul 28, 2009

Ok, so I have a main swf that loads an external swf into a movie clip called container_mc.In that external swf I want to stop it from playing and also make a play_btn appear so that the user may start it going again when they are ready. In my main swf I made this function:

ActionScript Code:
function pauseMovie(){
trace("movie paused");

[code]......

View 1 Replies







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