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


Similar Posts:


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

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

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

ActionScript 3.0 :: Loading External Sounds?

Jun 30, 2011

I am using this code to load an external mp3 file -

Code:
var snd:Sound=new Sound();
var context:SoundLoaderContext=new SoundLoaderContext();

[code]......

View 1 Replies

ActionScript 2.0 :: Importing Sounds From External SWF?

Dec 2, 2005

but I still somehow cant get it to work! I've spent hours surfing around and trying to fix it but I guess I've reached a dead end. This is how my .fla files are.One contains the sound. The .fla is called Track2.fla.In it, I've imported a .wav file and set the Linkage to export for AS and export in first frame. The identifier is "Track2".

on the first frame of the timeline, I added this code:
trackMusic = new Sound(this);
trackMusic.attachSound("Track2");

[code].....

View 2 Replies

ActionScript 3.0 :: External Swf Sounds Will Not Stop When Unloaded

Jun 23, 2009

Main swf loads an external swf which has a linear voice-over. User can watch/listen the whole 5 minute piece and then main movie carries on OR User can click to go on without viewing/listening to the whole show. Using removeChild, I can kill the visuals, but the voice track still goes on. i added a SoundMixer.stopAll line, and it does kill the current VO clip, but the next one will play in a few seconds. In the external swf, i'm using timers to delay slide advancement while the voice over plays. Seems like I came across some info that says I cannot fully unload like this with timers in my external swf.

Does this sound like a plausible source of the problem? If so, what is the best way to kill/nullify the timers in the external swf?

View 1 Replies

ActionScript 3.0 :: Using A Button To Stop All Sounds From External SWF?

Nov 16, 2009

I did a search here and I am not sure my question was answered exactly, and even if it was, I wouldn't know it. My problem is going above and beyond what the project calls for. So here we go:I have an external swf that I have loading in when you press a "play" button. Now I need to have a button that stops the sound ONLY on the externally loading swf. I assume from what I have Googled to death that this is called "stopping all sounds". I have also come upon a sound mixer dealy-o, but I'm not sure that is what I am trying to do?????I keep reading about SoundMixer.stopAll (); but this looks to mute the sound all together with no use of a button. So I am ASSUMING that there is more code to add to this when it comes to using a button.

So, I would like to know the EXACT code I need to use to get it working...if at all possible. I named my sound button "btn3_btn" and my mute button "btn4_btn" for now. I want a separate button to turn the sound back on once it has been muted.

View 9 Replies

ActionScript 2.0 :: Removing Delay On External Sounds

Apr 26, 2011

I am building a small quiz in flash, where the user gets a question and 3 answers, that is both shown in text and read as external sound (mp3). I am calling a function to show and read the next answers when the first answer has been read. The text is shown immidately but the sound takes around 6-7 secs. to load......(and it is only 60 kb) how can I avoid this?

My function looks something like this
function readAnswer(){
my_sound=new Sound();
my_sound.loadSound("answer1.mp3",true);
my_sound.onSoundComplete = function() {
trace("answer finish");
//next answer
_root.readAnswer();
}}

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

ActionScript 2.0 :: Stop All Sounds With XML Template External Link?

Aug 13, 2009

I have one of these XML driven Flash templates and I have several links that open _blank pages, I would like to stop the background music when they are clicked. I know I need a root stop all function and I think I would then define that function in the <link></link> tag in the XML...

View 0 Replies

ActionScript 2.0 :: Loading External Sounds Stored In An Array

Sep 11, 2007

I want to write a function that will load all of my external sounds stored in an array which are just strings of their filenames ie:

var soundList:Array = new Array();
soundList = ["sound1.wav", "sound2.wav", etc];

And create a new array with sound Objects that will have the sounds loaded in them (for later execution). After loading all of the sounds in the soundList array, the function should return or just set a _root value to 'true' ie:

[Code]...

View 1 Replies

ActionScript 3.0 :: Load External Sounds To Be Used For Events In A Game?

Mar 20, 2011

I have a game where sounds are triggered when things happen. These sounds need to be loaded externally so they can be changed. It seems like the sound class is just for loading streaming sound files. Is there a good way to load in these sounds and then have them triggerable and controllable by game events?

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

Stop External SWF From Playing?

Jun 8, 2009

Ive got a project with a fairly complex arrangement of menus and a narrated tutorial of sorts that is large (in terms of Mb) compared to the menus themselves. Since the tutorial is likely to be played only once, if at all, I don't want to load the asset unless needed. To do this I'm using the following code to load an external swf (the tutorial) and attach it to an mc container (mc_launch). A loader bar will be added later but for now it works, except: if the user navigates away from the tutorial (jumps to another frame in the menu timeline) the audio of the child attached to the mc_launch continues to play even though the instance of the mc_launch is no longer on stage. Shouldn't all the child objects of the container go away once the instance of the container is gone? If not, do I specifically have to execute a mc_launch.removeChild(loader) before navigating away from the instance of mc_launch?[code]...

View 5 Replies

Playing External .FLV File(s)?

Aug 24, 2009

I am fairly new to Flash and working with MX 2004 with Flash 2. I have tried several methods to play an external .FLV file. Some ideas from this forum and some from the Flash help system. Either I don't understand them and/or I am not implementing them correctly but nothing has worked. I have read of an FLVPlayback component and my system has a MediaPlayback component in the Component window. I have also seen yards of actionscript to play such files. Can anyone supply me with a basic/simple method, with code/example or buttons-to-push if necessary, to have an .SWF play an external .FLV via my MX 2004 system?

View 3 Replies







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