ActionScript 3.0 :: Capturing Microphone Turns Down Volume
Dec 19, 2011
In our application, we are using a Microphone object, that is published to a server (via NetStream).The recording works well.But unfortunately, while the microphone is active and the NetConnection+NetStream remain, all other audio from inside the flash application (and I guess other active flash applications as well, at least it does it with grooveshark) has its volume turned down.This is completely against the flow of our flash application, as you have to hear certain sounds clearly while speaking into the microphone.How can this turning down of the volume be disabled?
View 3 Replies
Similar Posts:
Jan 11, 2009
i want to create an mp3 player with volume ,frequency, bass, treble and speed knobs any pointers to any scripts that might help me would be great, but at the moment i am just trying to work out how to make a knob that turns.I assume i would use drag over and some kind of rotation function.
View 0 Replies
Apr 24, 2010
How to control the volume of the microphone with a slider?
View 1 Replies
Apr 4, 2011
I'm working on a project for my Flash class that seems to be above everyone's heads. What I'm trying to do is figure out how to take sound from a microphone, register the level/volume of that sound in flash. So if the level is 25 then a movieclip and a different sound is played back. Problem is I don't know what coding I can use to register a microphone and take whatever sound is put into the microphone and display a movieclip.
View 13 Replies
Oct 7, 2009
I'm setting up an application where I need to record users' voice every so often during the course of the users' interaction with the application. Recording is fine, and the quality is fine, but now my issue is understandng how Flash handles the microphone when it gets attached to a stream for publishing.Basically, the problem is that when I "publish" my stream, the voice gets cut off (clipped) at the beginning. So, I initially thought this may have to do with buffer settings on the FMS server side, but it wasn't. Then I investigated client side stuff. For some reason, my internal mic .activityLevel property is -1 even though I have called Microphone.getMicrophone(). According to Flash's documentation, this shouldn't be the case:
activityLevel propertyactivityLevel:Number [read-only]Language Version : ActionScript 3.0Player Version : Flash Player 9The amount of sound the microphone is detecting. Values range from 0 (no sound is detected) to 100 (very loud sound is detected). The value of this property can help you determine a good value to pass to the Microphone.setSilenceLevel() method.If the microphone is available but is not yet being used because Microphone.getMicrophone() has not been called, this property is set to -1.I am using a timer to investigate the microphone .activityLevel property every 50 milliseconds:
package
{
import fl.controls.Button;
import fl.controls.TextInput;[code].....
View 1 Replies
Oct 6, 2009
does anyone have an example of a simple volume slider that controls the master volume of the entire swf?
View 1 Replies
Nov 21, 2009
I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is set to.Is this a flash bug, or am I missing something? Here is the affected code (code for other buttons/functions omitted for brevity):
var song_initvolume:Number = 100;
slider_1._x = groove_1._x + song_initvolume;
playSong(0,song_play);[code]....
I'd like to be able to set the volume at say 50%, but the above mentioned behavior happens each time.
View 2 Replies
Feb 1, 2010
I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :(
Dragging the slider down will make the sound louder, while dragging up lowers it.
Here is my code below dealing with the volume slider.
[Code]....
The (-4) is an offset value so when you drag it all the way to turn it off, it's 0 and not 4. I need to reverse this somehow, so the traces above will swap... going down will make userVolume = 4 and going up will make it 30.
View 4 Replies
Apr 12, 2012
I've got a serious of games which in turn load off a main main swf.I have mute and unmute buttons on the main menu and the same buttons in each game.When I unload/load a game I want the volume to stay as it is so they player doesn't have to keep turning the volume off. AudioOff is the button shown when the volume is off and AudioOn is the button shown when the volume is on.The code I've got now keeps the volume on or off through the games but the buttons aren't showing up correct with this code..
if (SoundVolume.volume == 1)
{
AudioOn.visible = false;[code].....
View 2 Replies
Sep 10, 2011
I converted the slider bar and slider button to buttons. Then, I made the slider button into a movie clip.
Here is the code I placed while slider button was a button:
Code:
on (press) {
startDrag(this, false, left, top, right, bottom);
}
[Code]....
It seems right to me but I don't know. The movie button slides down the slider bar but it just doesn't affect the volume. Going to try to attach my FLA to offer better insight. Just tried to upload it and no matter if it's FLA or zipped FLA, it says it failed.
View 1 Replies
Feb 23, 2004
I've been using flash for a whopping 3 days now, and I've stumbled onto a problem that I can't seem to find a way around. I'm using flash 4, due to the fact that #1 it's all I've got, and #2 the new flash mx 6 won't run on the old ass computer I'm using. This is my problem: I import a .bmp image and edit it in flash to make portions of it animated. The image is a symbol (I think it has to be anyway to animate it...) Everything runs fine when I use the basic play/rewind buttons to test the animiation, but when I make it into an executable, or when I go to the menu and hit "Test Movie", the image shows up as a red square. The animation I added still runs, but the actual image I imported is a red square.
View 5 Replies
May 17, 2011
I would like a function to run when a user clicks anywhere on stage. But this function should not run when the click is on buttons & on url:s inside a dynamic html-formated textfield. How can I detect this? I do realise that the cursor turns to a hand when you hoover over a url inside a textfield & you can set the hand to appear on buttons as well (which i always set it to do). So is there a way in realtime to detect when the cursor is & is not a hand? I've tried the following:
Code:
btn_mc.buttonMode = true;
stage.addEventListener(MouseEvent.MOUSE_DOWN,down)
function down(E:MouseEvent)
[Code]....
View 2 Replies
May 28, 2009
I am trying to load html into a text box from a website. when i load to the text box, everything goes fine except that it is loaded as something that looks like this:
"%20Cheese%20Croissant= %3B%3Cimg%20src=%22http%3A%2F%2Fwww%2Ehousi ng%2Eumich%2Eedu%2Fdining%2Fmenus%2Fm%2Dfit%2Egif%22%20alt%3D%22%2A%22 %3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22Desserts%22%3EOat%20Bran..."
I wouldnt mind if the html tags were there, because I can deal with those, but I don't know what to do with this. Here is my loader:
[Code]...
View 8 Replies
Jul 14, 2009
Flash CS4. When I enter a movie clip to edit the timeline the pasteboard turns to the color of the stage. The result: I can't see the edges of my stage. This is only within the MC. And only within one particular MC (I created another one and the pasteboard stayed 4% gray). When I take the content in the bad MC (via copy frames) and move it to the good one, the same thing happens: Pasteboard turns to the color of the stage. I've tried SFT-CTL-ALT double click. No luck. Strangely, this isn't happening in every FLA. I know it must have something to do with the content on that timeline, but what that is I have no idea.
View 3 Replies
Feb 20, 2011
I'm trying to make an array with different color values. My problem is that when I do...
teamColor[i] = currentColor...
All color values in my array turn into the currentColor. (I would upload more code, but that would be a massive mess, considering that I have code everywhere with references from movie clips that are as far as 3 layers deep. However, this would be irrelevant anyways (probably), because I tested this with color values on my main timeline, without any references to or from anything deeply nested). I would like to add that I tried adding strings in there and that the strings remained their original, intended, value, while the color exhibited the same phenomenon.
I changed my code by creating separate variables for each color instead of putting the variables into an array (not what I really wanted to do, but it works). My code looks like this:
if (teamColor != 0) {
this["team"+teamColor+"Color"] = new ColorTransform(0,0,0,1,currentColor.redOffset,currentColor.greenOffset,currentColor.blueOffset,)
teamColor = 0
namebox.addboxes()//function in a movieclip
}
TeamColor is now an int that is changed based on which box a user clicks from a movie clip that has a dynamically generated name, based off of what the variable value in a loop was when it was created.
(E.G: 'tempboxname[ttns].name = i;')
teamColor is then equal to that name when the user clicks it. I have another movieclip with colors in it and the above function is called to check if any teamColor change has occurred, and if it has, act accordingly. (The idea of having teamColor equal to 0 is so that if the user clicks twice, nothing changes. I other conditionals for other colors, all within the same function). That is how I fixed me code. It's not what I wanted, because it's not an array (meaning a seemingly infinite number of teamColors, and thus, teams) but it'll do for me.
View 2 Replies
Sep 1, 2009
Basically, I have a button that when moused over it makes rivers go to 50% opacity (they start at 10%), then when clicked they go to 100%.
What I want: Then the rivers stay at 100% until the user clicks the button again.
What is happening: Currently though the mouseout is fading the rivers back to 10%. I know that my code is telling it to do that and want to know how to make it stop.
Here is my code for this:
function shipMouseOver(event:MouseEvent):void {
Tweener.addTween(rivers_mc, {alpha: 1, time:2});
Tweener.addTween(this.dashboard_mc.ship_btn, {alpha: 1, time:2});
} function shipMouseOut(event:MouseEvent):void {
[Code] .....
View 1 Replies
Nov 14, 2009
I have a whole heap of circles which are user created and they all bounce off one another. Generally it works fine but occasionally two balls join together and sort of .. orbit each other.
my collision code is this: (it's within two loops going through an array of movie clips, where mc1 is the current movie clip in the first loop and mc2 is the current movie clip within the second loop)
ActionScript Code:
dx = mc1._x-mc2._x
dy = mc1._y-mc2._y
[Code].....
View 1 Replies
Sep 24, 2005
im trying to make a lightsaber that when you push the button, the lightsaber turns on, and then when you push it again, it turns off. There are three frames in this animation. It starts out with just the handle on frame one and by frame 3 the beam gets to its full size. Right now, the light saber will start out with the beam completely out and when you click the button, the beam will go down and then back up and stay there. This is the actionscript i have so far,
[Code]...
View 7 Replies
Sep 12, 2003
I'm interested in coming up with a flipbook which turn to another page, with a "turn page" animation. Exacly like what they did for Fullerton, at this URL...I got a great reply from JCS (thanx again dude!), who passed me a fla where they came out with a flip book, but you'll have to manually drag the page frm one page to another. Technically this flip book is more superior, as the user can flip the book manually, and it looks very very cool, but the thing is, there doens't seem to be a way to flip all the way to the last page withouth going through all the pages in between, and that sucks, as imagine that the document has like 50 pages!. BTW, the file in JCS sent can be downloaded here.URL...So basically, I want to modify the script to enable the the page to turn automatically when clicked, instead of having to drag the page.
View 11 Replies
Feb 12, 2009
I'm extending VideoPlayer and it's been working fine for weeks - all of a sudden it's gone berserk on me. I create a few instances and I'm passing different dimensions to each but new instances are using the size of the largest instance so far...as though the height/width had somehow turned static...?Here's the pertinent code:
PHP Code:
import fl.video.VideoPlayer;
import fl.video.NCManager;
[code].....
View 2 Replies
Dec 9, 2011
[URL]I have published my site but when i upload it to my server and go to view it gets smaller on the screen,i have tried to attach html but it wont upload.please help its driving me crazy and its my first time trying to do this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>~~main9_v4</title>
[code]....
View 1 Replies
Jul 19, 2010
I have a flash intro and when ever I preview it,the intro background turns to black instead of staying the way it should be.Can somebody please help me out here,I need this flash intro for a website.Please explain this to me in simple terms because im pretty NEW to adobe.
Note I've tried everything to make the flash background stay the way it was but nothing I do works.
View 6 Replies
Sep 16, 2011
This seems pretty weird even for Adobe standards. I've set up size of the movie to be 1024x768, which is the resolution of ipad screen in landscape. The stage looks ok but when I publish the swf it goes into portrait mode.
I even used this line of code but it doesn't help.
stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
View 1 Replies
Sep 22, 2009
I'm starting with a textField containing some bold white text.
If I add it to the stage directly it looks like it should look.
If I convert it to a bitmap, like this:
var bmd:BitmapData = new BitmapData(textfield.width, textfield.height);
bmd.draw(textfield);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);
Then I just get a white rectangle the same dimensions of the type.
View 2 Replies
Dec 17, 2006
I'm having trouble with this turing dial. I want to have a clicking noise as the user drags the dials around.
See it here: [URL] Download the .fla file here: [URL]
View 7 Replies
Aug 24, 2011
I'm running CS5.5 on an intel Mac 10.6.5, and I have been having problems encoding to flv. All my videos are edited the same way, and using the same formats etc., yet recently I have found that when converting to .flv, some will work fine, and others will have the audio replaced by white noise.
Checking through the video specs, it appears that the one difference is that the ones which worked fine are all Apple ProRes 422 HQ files, and the ones which failed are Apple 10bit Uncompressed. The strange thing is the audio is the same for both. Yet when the encode problem happens, the video for both is fine, its just the audio where the problem appears.
View 1 Replies
Aug 24, 2011
I've got a two year old site (ww.pantelco.be/coaching.html) and something odd happened today. I had to change something in the fla, tested the swf and uploaded it to the server. When I test the swf in flash or just open it manually, all is fine, texts are okay.But whenever it's in a htmlpage (using swfobject), all the multiline textfields turn from horizontal to vertical expanding text, so a large column of 1 character.
Even my backup site acts the same way. It's driving me crazy.
I installed a couple of new browsers a couple of days ago, and I remember I had to update my flashplayer. Maybe thsi is relevant? I just don't know. Texts are loaded through xmls - well, they load alright, but they don't show up the right way.
View 4 Replies
Jun 26, 2009
I load this clip:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
[Code] .....
In the last frame of my time line I add:
removeMovieClip("container_mc" );
The movie disappears but the placement turns black.
I added:
this._alpha = 0;
But the other clips of the main movie doesn't load.
View 1 Replies
Sep 4, 2010
I created a class that turns a movieclip into a clickable button. But for some reason it only works on one of my movie clips and not the others, even tho the other movieclips were created as duplicates. It saying that its a null object Below is my code for the class.
Code:
package {
import flash.display.MovieClip;
[code]......
View 0 Replies
Jun 13, 2007
I have a song that plays on my site, with an on/off button. And the way the code is set up now is when you click "off" it turns off all sounds. I just put a video on my site, and now the song interferes with the video, so when you click 'off' on the song, it turns off all sounds, including the video. Of course all you have to do is re-start the video, but I'd rather have it set up so the code for the musicbox just turns off only the music.Here's the way it is now, on the off button:
Code:
stop();
stopAllSounds();
play_btn.onRelease = function(){[code]...
I don't know always know the proper way to write it. These last few days have been like a person who's in a foreign country and has a lot to say but can't because they doesn't speak the language.
View 2 Replies