ActionScript 3.0 :: Animate A Mask Over A Sound Meter According To The ActivityLevel Of The Microphone?

Nov 15, 2009

I am trying to animate a mask over a sound meter according to the activityLevel of the microphone. If I understood what's in the livedocs, the activity level is the amount of sound captured by the microphone, right? well, I'm trying to use it in order to do the animation but I have two problems:
 
1. there's a very annoying sound coming out of my speakers

2. nothing happens when I talk through the microphone
 
here's my code:
 
import flash.media.Microphone;
import flash.events.ActivityEvent;
masker.height = 0;

[Code]....

View 5 Replies


Similar Posts:


Animate A Blurred Mask?

Apr 5, 2012

I am trying to saturate a flash animation from left to right with a blurred wipe. I am attempting to do this by creating duplicate movie clips, with one of the movie clips having a filter to completely desaturate the color. I am hiding the saturated movie clip with a mask (basic rectangle) that I am animating to move out of the way revealing the "color". I would like my desired effect to "fade" in by adding a horizontal "x" blur to the mask. I have been successful at wiping in the saturation, but Flash seems to be ignoring the blur on the mask I have created.

View 7 Replies

ActionScript 3.0 :: How To Animate Mask In Runtime

Mar 14, 2011

Trying to animate a mask in runtime:

Code:
var _mask = new Sprite();
_mask.graphics.beginFill(0x000000);
_mask.graphics.drawRect(0,0,mc.width,mc.height);
_mask.graphics.endFill();
mc.mask = _mask;
var timer:Timer = new Timer(100);
var foo:Function = function (e:TimerEvent) {
_mask.x += 1;
if (_mask.x > mc.width) timer.stop();
} timer.addEventListener(TimerEvent.TIMER, foo);
timer.start();

Nothing happens... FYI I tried with Tween too but the same result. I know that mask only works when the associated displayobject is on the display list. Can it be something with that? If I set the x of _mask staticly (no animation) it works.

View 2 Replies

ActionScript 3.0 :: Tweener Resizes Mask But Does Not Animate It?

Apr 27, 2009

First let me say that I am just starting out in AS3 so this may be a simple problem that I am having due to my lack of experience. Goal: I have a mask over a mc that holds video being streamed in. This mask is set to show only a portion of the video and when the user mouses over the mask I want it to expand to show the whole movie. When the user mouses off the mask I want it to re-size back to its original size.Problem: The second time the mouse is over the mask, it does get tweened to the larger size, but you do NOT see the animation occur. It just blinks in.Code:I have included everything but my video class and grid class.For this I have turned off my grid. BTW this my FLA file includes this class. I have this feeding from an xml file, i removed that code. I also have 2 other movies that will function the same as movie1 but I have removed that code. Once I get movie1 working it should be fine for movies 2 and 3.

Code:
import caurina.transitions.Tweener;
import flash.utils.Timer;

[code].....

View 3 Replies

ActionScript 3.0 :: Get Bytes For Microphone Sound?

May 20, 2008

I was wondering if there is any way to get the sound bytes froma microphone and apply it to lee brimelow's tutorial on sond spectrum?[url]...

View 4 Replies

ActionScript 3.0 :: Can Mute MICROPHONE Sound

May 30, 2009

can i mute MICROPHONE sound using AS3?

View 1 Replies

Professional :: Record The Sound Through Microphone

Dec 5, 2010

We are working on a project to record a sound a we need to play back in flash 8 (as 2.0). we have 3 buttons like play /pause, record, stop, When we clik on record button we can record the sound through microphone and when we clik on paly /pause button the recorded sound should be played. so can we record and can we play back in flash 8.

View 2 Replies

ActionScript 3.0 :: Mix A Mp3 File With Microphone Sound?

Nov 29, 2011

i dont know that how mix a mp3 files with microphone in as3 and where should I start.

View 1 Replies

Actionscript :: Receive Microphone Sound Without Hearing It

Sep 27, 2011

This captures microphone sound and changes the alpha of 'foo' according to the sound level. However, I hear the microphones input. I want the visuals to work without hearing any sound. How would I do that?

[Code]....

View 1 Replies

Actionscript 3.0 :: Change The Imput Sound From A MP3 To Use The Microphone Instead?

Mar 1, 2010

if there is a way I can change the imput sound from a MP3 to use the microphone instead?I have so far done this in the code but still with no luck.

//var s:Sound = new Sound(new URLRequest("music.mp3"));
//s.play(0, 1000);
var myMic:Microphone = Microphone.getMicrophone();

[code]....

View 3 Replies

Professional :: Record Sound Using A Microphone And Then Upload It To Server?

Jun 29, 2010

What I want to know is if it is possible to record a sound clip using a microphone and then upload it to the server using a swf applet in a webpage. Im an experienced java/javascript programmer but just starting out with flash/action script. What technologies will I need to do this? Can I do this simply using simply an swf file and an apache/php or jsp page?

View 2 Replies

ActionScript 3.0 :: Flash Take The Volume Of A Sound Spoken Into A Microphone?

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

ActionScript 2.0 :: Record Sound Through Microphone With Background Music?

Jun 22, 2009

I am developing an application in flash(AS2) with FMS/RED5. where i want to record sound through microphone with background music(Flash is playing mp3). is that possible in as2 ?

View 0 Replies

ActionScript 2.0 :: Recording Sound Through Microphone Onto Local Disk

Feb 22, 2011

I am currently an English teacher and I am familiar with programming in DOT.Net platform. I am completely new to Flash. I turned to this platform because I thought that would be the best way to prepare interactive computer based exams in English. My real problem is, I don't have the slightest idea as to how I can create a Flash application which records the sound through the microphone and saves it on the local disk.

View 1 Replies

ActionScript 3.0 :: Get Access To Sound Samples Coming From A Microphone?

May 27, 2011

way to get access to sound samples coming from a microphone ?

So far I have not found such a function. In the meantime I am trying to overload alsa functions e.g: snd_pcm_readi to see if I can get the samples before flash treats them, but no success so far.

As a matter of fact, since I have no idea how both sound and microphone class work internally, I don't know exactly which alsa functions they call.

View 2 Replies

ActionScript 2.0 :: Allow An Object To Be Manipulated By The Sound Received In The Microphone?

Mar 18, 2007

i have the actionscript to allow an object to be manipulated by the sound received in the microphone:

m = Microphone.get();
attachAudio(m);
m.setUseEchoSuppression(false);
onEnterFrame = function () {
circle._xscale = circle._yscale = m.activityLevel+50;
};

but i need the script to allow the function that when sound is made it triggers a jump to a different frame.

View 5 Replies

ActionScript 3.0 :: Record Sound From Microphone With Flash Player Lower Than 10?

Jan 4, 2011

Is it possible for me to record sound from a microphone using a lower version of flash player, say Flash Player 9?

View 2 Replies

Flex :: Progress Bar Move On Mic Activitylevel?

Jan 3, 2011

Can any one indicata me a small piece of code for making this progress bar move on mic activitylevel. When spoken on the microphone the progressbar should indicate it.Also which works on internet explorer

[Code]...

View 1 Replies

Media Server :: Microphone Sound Recording,saving / Playing Flv File Is Saved But Not Working

May 4, 2009

While recording the flv is saved inside applications/stream/samples/audio.flv. But it is not working properly.[code]

View 1 Replies

Media Server :: Microphone Activity Level At -1 Even Though Microphone.getMicrophone() Is Called, Why?

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

ActionScript 2.0 :: Wanted To Animate Sound Controls

Jul 21, 2006

I have tried this about 24 different ways now.Within main movie there lies a movie clip called soundcontrols_mc. Within this i am creating a emptyMovieClip via actionscript seen below:[code]Now all this code lies within soundcontrols_mc and I have tried rewritting it many ways for navigational control and also placing it within the pt_mc but when I do that all songs restart everytime animation happens.Things I have tried (just started learning action script from AS, The definitive Guide).So I have altered _parent, _root swapping all types and degrees of them and cant get a response from my handlers.

View 10 Replies

ActionScript 2.0 :: Flash Bandwidth Meter?

Jul 26, 2005

I need a meter that shows the current bandwidth rate as a percentage. For example: The maximum bandwidth rate is 4mbps, the current bandwidth is 3mbps, so the bar would be 75% full. This bar would change dynamically as the bandwidth rate changes.

Is there anything out there that already exists like this?

View 5 Replies

ActionScript 2.0 :: Programing A Paintball BPS Meter

Feb 2, 2006

i wanted to make a flash document , that when i try to click my mouse 1 as fast as i can on a button, it will measure how many mouse1 cliks per second,and display the mouseclicks/second in the corner , i was wondering how to do this , i am the noobiest noob at flash programming ever.

View 6 Replies

ActionScript 2.0 :: Dynamic Analog Meter?

Jul 28, 2006

I'm trying to figure out how to bring in a number from xml into this analog meter so that it will display the number in the meter. I believe I'm supposed to use LoadVars object but not sure where to implement it.

ActionScript Code:
onClipEvent (load) {
_root.stop();[code].....

View 2 Replies

ActionScript 2.0 :: Interactive Rotating Meter?

Jan 7, 2008

i got a problem with my rotating meter. it works with key press.

Z= 1/4
X = 1/2
C = 3/4
V = 4/4

R = reset the meter to zero. the problem it tat the meter just go haywire when it goes more than 180 degrees rotation. so i cant get it go to 3/4 and beyond. i dunno where i go wrong.

[Code]...

View 2 Replies

ActionScript 3.0 :: Creating Simple Animated Analog Meter?

Feb 23, 2011

I'm trying to create a simple animated Analog Meter that responds to my input slider control. Is any inbuilt component available for flash pro cs5?

View 5 Replies

Flash :: Flex Audio Input Peak Meter?

Oct 14, 2009

I'm looking for a simple way to do a peak meter for a Flex application I have that needs microphone input. Is there some component designed for this ?

View 1 Replies

Flash :: Create A Voice Pitch Meter/analyzer In Flex?

Aug 15, 2011

AS3 or Flex : How to create a voice pitch meter/analyzer? Is it possible? How to create voice pitch analyzer on flex or AS3? do you have any idea? or is there any software like this that can be used on a web site?

View 1 Replies

ActionScript 3.0 :: Alpha Mask - Area Of The Loader Outside Of The Mask Will Visible When The Mouse Is Down

Sep 10, 2010

I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:

[Code]...

View 2 Replies

ActionScript 2.0 :: Scriptable Mask - Large Mask Behind The Whole Of Flash Site?

Aug 19, 2003

what i am doing is to make something along the lines of the "scriptable mask" tutorial Inigo was kind enough to put up.My idea is to have a large mask behind the whole of my flash site, this masks a colour image with a black & white one (nothing tricky). The image I am using is actually 5 separate images combined, and each is a pic of certain parts of the site.I also have a very basic set of buttons along the bottom... each corresponding to each section.

All I want is to set it up so that when I mouse over the buttons, the _x of the mask moves to correspond with the correct image... really very basic... or so I thought .If anything it should be easier to do than what is in Inigo's tut (where he uses the _x of the mouse to move the mask)... i just cant seem to get it to work with a nice easing effect (its easy to get the mask to simply snap to each coordinate, but I need it to smoothly move).

View 4 Replies







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