ActionScript 3.0 :: SoundMixer For Individual Sounds?
Oct 29, 2010
I been trying to find this but no luck so far. Is it possible to get different soundmixer values for two different sounds that are playing at the same time?
At the moment it seems to me that the soundmixer takes the combined sound output for analysis, which si not what I need.
View 2 Replies
Similar Posts:
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
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
Jun 20, 2004
I've gotten as far as getting a listbox with a list of articles to display the articles in a dynamic text box, only i can only get it to work if i use one huge external text file that contains all the articles. what i want is to have each item on the list open up its own external text file, i.e. for each item on the list, there exists a separate text file. I'm about ready to put my fist through the monitor, and that would suck because this is a really nice monitor
View 13 Replies
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
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
May 21, 2009
Using the example found in the class documentation, you'll notice the bass frequencies are crammed on the low end too much, and the higher frequencies will sometimes register even in the bytearray.position = 0 float. Is this a problem with the design of the computeSpectrum class? Because I can take the same file, put it in another spectrum analyzer and see the bass and treble spread more evenly.[URL]
View 4 Replies
Sep 2, 2010
when do we use SoundChannel and SoundMixer?
View 3 Replies
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
Jan 6, 2011
I'd like to record live to a server the audio produced by some kind of drum machine made in flash, is it possible with FMS to record audio which is NOT from a Microphone object but from flash' SoundMixer?
View 1 Replies
Mar 31, 2011
I connect to the sound of youtube website, how can I bond SoundMixer.computeSpectrum
[Code]...
View 6 Replies
Feb 19, 2009
I use the AS3.0 stated below to control a simple Flash play/stop button to play/stop a mp3 on a webpage. Since I am using about 15 of those players on one page and a lot of visitors are to lazy or unaware to press 'stop' before clicking 'play' on a next player, a 'stopallsounds' would be great: so, whenever a play-button is clicked all the 'earlier' sounds will stop playing.
So, the buttons seem to work fine but the line "SoundMixer.stopAll();" in the playfunction paragraph is not doing what i want it to do; other/earlier sounds just keep playing.
[Code]...
View 0 Replies
Jul 8, 2009
For the past couple of weeks I've been wracking my brains over SoundMixer.computeSpectrum(), arguably the coolest method in ActionScript 3. It's the one that spits out the last 256 (or so) audio samples that hit the speakers, with the option of viewing that data in the time domain (waveform) or the frequency domain (Fourier transform). It's great for visualizing music, but its major drawback is that it only operates on global, playing audio, which means you cannot visualize different channels or preprocess the visualization.
Sound.extract(), a new method in Flash Player 10, gives you a Sound object's entire waveform at any time you want; I've managed to line up the waveform in Sound.extract() perfectly with the waveform in SoundMixer.computeSpectrum(), so they are literally neck-in-neck. In this SWF I'm drawing two lines- a blue line, which uses data from SoundMixer.computeSpectrum(), and a red line, which uses data from
[Code]...
View 11 Replies
Aug 2, 2010
Using AS3 here - [URL]. I've got lots of externally loaded videos on this site most of which are XML driven. The "SoundMixer.stopAll();" works as it should, basically. I include it on each destination frame. If you click the "Jump Creative" entry point a video is set to auto-load and play. Now try clicking away on News while the video is loading. If the user clicks away while the video is loading, the audio will kick in after navigating away and after it has loaded.
View 12 Replies
Mar 31, 2011
I managed to run my youtube api and SoundMixer.computeSpectrum.SoundMixer.computeSpectrum are online, positionBar, player.getDuration (), player.getCurrentTime () does not work.Everything is running on localhost.I do not know is the security issue,
View 4 Replies
Jan 4, 2011
i'm wondering if there's a way to record live audio from flash' SoundMixer (NOT from the microphone).
View 1 Replies
Aug 31, 2009
I'm trying to use the code below to show a graphical representation of the sound from externally loaded FLVs, as they play.The code I have is below, can I change this to listen for whatever sounds Flash is playing at the moment and computeSpectrum from tha
Code:
var url:String = "song.mp3";
var request:URLRequest = new URLRequest(url);
[code]......
View 5 Replies
Mar 15, 2011
I need to mute the sound in my flash movie via html (flashVars parameter).My code in timeline is:[code]
View 6 Replies
Feb 20, 2012
I am trying to load multiple movies into a single swf. the problem is when I load another swf holding the movie... it keeps playing the sound from that movie even when I change to another one. what I have
ActionScript Code:
import flash.display.SimpleButton;
import flash.display.DisplayObject;
[code]......
View 9 Replies
Aug 25, 2010
I've currently got a flash site written in AS3, into which i'm loading an AS2 SWF that plays audio.The AS2 SWF is loaded into a container movieclip at Frame 10, when a specific navigation button is pressed, the playhead advances to this frame, and calls the SWF. When the user navigates away from this frame, SoundMixer.stopAll(); is called to kill the audio from the loaded AS2 SWF.
This works fine inside of Flash however, when deployed to the browser, the audio playing in the loaded AS2 SWF carries on playing.I've tried loading a new blank SWF in it's place to kill the audio, as well as a blank SWF with stopAll(), all of these solutions work within the Flash IDE (CS4) however the audio always persists in the browser.
Code:
var swfLoader:Loader = new Loader();
holderMC.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("ytPlayer.swf");
[code]....
View 1 Replies
Aug 10, 2010
am building eLearning courses using a Flash-based AS 3.0 course playerI use SoundMixer.stopAll to stop sounds when progressing through the course, pressing buttons etc also call SWFs made in Captivate into my courses. These SWFs have audio in them. But when I progress through these slides (by clicking a next button), the sound from the captivate made slides overlaps (keeps playing). SoundMixer.stopAll does not seem to work for captivate SWFs
View 1 Replies
Sep 10, 2009
I'm loading and progressively streaming an F4V Video using pure actionscript code (No playback component used) and after the video begins streaming I place a MUTE button on the stage that when clicked executes the SoundMixer.stopAll(); instruction.
When the movie completes playing I use the following code to monitor the NetStream state changes and place a NEXT button on the stage when the video finishes.
When the video completes there is a NetStream event.info.code issued - "NetStream.Play.Stop"
[Code]...
View 2 Replies
Dec 19, 2008
I'm running two flash items on one page, both have sound, and the AS3 swf uses computeSpectrum
I'm getting the following error message:
SecurityError: Error #2121: Security sandbox violation:
SoundMixer.computeSpectrum:
http://dev1.kbrcomm.com/OLA/soundSpectrum_rev2.swf
cannot access
http://dev1.kbrcomm.com/OLA/ICE_intro_rev9.swf.
[Code]...
View 5 Replies
Jun 11, 2010
I am trying to develop a sound visualizer and i have developed OO solution but the problem is I get this error:
SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: widget5.swf cannot access . This may be worked around by calling Security.allowDomain.
at flash.media::SoundMixer$/computeSpectrum()
at widget5/onEnterFrame()
Also if I press continue I get other error
Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readFloat()
at widget5/onEnterFrame()
View 3 Replies
Jun 25, 2011
I wrote something to capture sound from my microphone. I can visualise the sound data with SoundMixer.computeSpectrum.is there a way to mute the sound and still get sound data from SoundMixer.computeSpectrum?Now I have this:
sc=son.play();
var t:SoundTransform = new SoundTransform(0, 0);
sc.soundTransform = t;
but I do not get any data. if I pump up the volume, data comes through again(I need to mute it because it will echo otherwise).
View 1 Replies
Mar 31, 2010
make an interactive flash simulation of a display that has several different settings. these need to work individually so that the user can set the different indicators to the number they want. the picture shows the two main functions; a number indicator and a status bar (kind of like the reception bar on a phone).i have tried to get .swf files to load on top of each other, but they keep erasing previous settings in other indicators. is there a way to get this to work? or maybe a completely different approach that would be smoother? or can someone point me in the direction of a tutorial or a template that has this function?
View 4 Replies
Jun 23, 2004
[code]I would like to populate 'allLinks' with objects 's'.However I have been unsuccessfull in my attempts.I need this loop to work for a a large number of items so I dont really want to have to add each individual item.
View 2 Replies
Aug 2, 2011
With get- and setTextformat I can set the individual color of a section in a TextField. There is a problem with getting and setting a textformat from and to a TLF (set- does give an error message when putting the TextFormat back to the TLF).Now if I have two strings and want them to have different color and size in one TLF what would be a good way to do that. I don't want to programm all TextFormat propertys for every different Text in my application.
View 10 Replies
Jun 21, 2011
If I have a button named:
<mx:Button id="backButton">
and another named:<mx:Button id="cancelButton"
How can I style each button seperatly?
Can I give each button a style, then set the style in CSS... E.g.
Button #style { backgroundColor: red;}
View 1 Replies
Mar 21, 2012
I have figured out a way to change the style of tabs at run time with following logic:
var cssStyle:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".MyTabs");
cssStyle.setStyle("borderColor", "red");
But here ".MyTabs" class is applicable to all the tabs between first and last tab. As per getStyleDeclaration javadoc, it only accepts "class selector" and "type selector" not the id selector.
How can I change the individual tab style at run time?
View 3 Replies