I have a video chat application where there can be 6 participants. What I would like to do is give the option to each publisher to control their own stream's volume. The code I have looks like this.
[global] private var volumeTransform:SoundTransform; [In the init method where ] outgoingStream = new NetStream( nc );
[Code]....
A possible solution can be this : Calibrate the slider and set the microphone gain, a gain of zero effectively is mute and a gain of 100 is full volume.
I have a button that rotates a wheel 90 degrees each time the button is pressed. What I'm trying to do, is play a sound when the wheel stops at each rotation. So something like this:
Wheel rotates to 90 degrees. 90 degrees = sound #1 Sound #1 plays once.
The rotation works fine, but the problem is, when I tried to do this I put in a statement that with my wheel named "wheel" if wheel.rotation==90 play my sound. But my sound keeps looping and SOUND_COMPLETE is not firing to trigger it to stop.
I want to use a sound loop in my flash movie. The movie has many scenes. And the problem is that when I go to next scene or different scene I hear the sound repeating twice. I mean sound does not stop from first scene and begins from the different scenes.Is there any way to play sound like "stop all sound" option in Flash.
I need some help to make a bar that controlls the sound that comes out from ether the righ tor the left speaker so If the bar is 100% left the the right speaker doesnt play any sound but the left is playing to 100%! (just like your "volume bar" tutorial but I need a Tutorial for right/left sound!
make a bar that controlls the sound that comes out from ether the righ tor the left speaker so If the bar is 100% left the the right speaker doesnt play any sound but the left is playing to 100%! (just like your "volume bar" tutorial but I need a Tutorial for right/left sound
It's possible to play a sound file through AS, either by loading it from a folder or import it to flash. It's also possible to play a dynamic tone with flash.media.Sound + writeFloat.
But... is it possible to play a sound file with flash.media.Sound + writeFloat in some way? I want to play a sound file without having to deal with any files except the .swf!
I am trying to use the id3 tags from second table, output display undefined..
var sound:Sound = new Sound; var url:URLRequest = new URLRequest("1.mp3"); sound.load(url); var player:SoundChannel = sound.play(); sound.addEventListener(Event.ID3, id3Listener); function id3Listener(event:Event) { var info:ID3Info = sound.id3; trace(info.TIME); trace(info.TRDA);
This is what I have as far as code, it is in the first frame of the movie.
nature = new Sound(this); nature.attachSound("sound_naturally"); nature.setVolume(50);
[Code].....
I have the sound exporting to ActionScript with the link identifier 'sound_naturally', not exported to the first frame. I don't understand why it's not working. I did like the exact same thing like 3 hours ago and it worked fine, but I lost the file so I had to redo it and now it won't work at all.
i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on... i know it has to be made with a boolean variable, true/false, but i just can't figure out how.
are there any possibilities to play sound in flash (actionscript 2), which is defined by a mathematical function like f(t) = 0.5*sin(2*Math.pi*16/27*440*t) ?
I have buttons with sound attached in over state and that works just fine, but this means that you are going to hear sounds only when you move cursor over button, how can i make some background sound to play from the moment flash is loaded, even when buttons are inactive, my background image looks like some electrical equipment and and i want to make it sound realistic (sound clip must to be set to loop) and must to start at the moment flash is loaded?
I have sound playing in my flash file. My index file is a html file which calls the flash file, and when i run the html file, the sound doesn't play. Does anyone know how I can rectify this?
Years ago, when I was designing a game site, it was recommended to me to do what you pretty much suggested in your answer to a question about Flash sound: put my sound effects as Flash elements. This works great on every platform except the iPad.
In Flash 10/AS3, I added some sound and it seems to be working alright, but I think I'm doing it wrong. I imported the sound into the library, but I believe that it's reloading it from the folder with the swf/sound. I'm loading them like so:
I'm using a flvplayback component in flash cs4. The sound from the mp4 video plays fine, but the video doesn't play. I don't know how to check the specific encoding of the mp4. I'm publishing to flash player 10 at 24fps.
I built a Flash site that is being used as a teaching tool. The client would now like to add voiceovers to sections. Is there a way to play a sound once on a movie clip, and if the viewer comes back to that clip then the sound won't play again?
I currently have an dragable button that is locked to only move left and right within a small bar, and want to have that button playing one sound going left, and another sound going right.
I used the tutorial found here. The 3 frames of my button are in a movie clip, within a keyframe in the main timeline. I used the code at the end in the tutorial for the first keyframe, so that the clip begins with music playing. However; I cannot get the buttons to work. I cannot stop the sound.
I have a main swf that would eventually call out to another SWF file. Both of them have background music playing in them. Both swf runs fine without any error when I tested on them individually(both test movie and running the swf files themselves). But when the main swf calls the sub swf, the music doesn't play which is strange....
this is how I load my music(in both swf):
Code: private var myMusic:Sound = new Sound(new URLRequest("main_music/myMusic.mp3"));
private var myMusic:Sound = new Sound(new URLRequest("sub_music/myMusic.mp3")); All the swfs and music resides in the same folder. I am confused, I do not see the reason why the sound doesn't play on sub.swf when the main.swf calls the sub.swf when the main.swf works perfectly fine.
I'll explain my scenario. I want to play a small sound at certain situation, so I would prefer initiating the play via jQuery. Also, I wish to make a toggle button for the sound. So, the user could turn ON/OFF the sound. So, I'm thinking about creating the toggle button and function for playing the sound inside the Flash. But I don't how to call this function (that I have written in Actionscript, which will start playing the sound) via jQuery ! Do you have some ideas ? I haven't done creating the Flash document, but bookmarked some tutorials and will start playing with it soon. :) The reason for choosing Flash is that it would be crossbrowser compatible.
Usually this should result in the Sound calling the handle... function when it wants to play so that I can insert my own generated ByteArray for the sound. But it doesn't even call that function and sometimes (!!!) crashes instead with an: Error #2004: One of the parameters is invalid.
I have a flv video file that I imported it on the stage and it plays on timeline. I have written a code that on mouse movement on the stage, the video plays from start to end ( mouse movement from left side of the stage to the right side )
Code: stop(); stage.addEventListener(MouseEvent.MOUSE_MOVE,stageMovement); function stageMovement(evt:MouseEvent)
[code]....
The problem is the sound doesn't play in this way. What should i do ?