ActionScript 2.0 :: Flash8 Dynamically Recording Sound From Mic
Apr 28, 2009
I was wondering if there was a way a user could click a button to record a sound that would be stored to a sound clip and played back by the click of a button?
In other words, can I dynamically record a sound from my mic into a sound clip in an .swf?
*I've been trying to develop a recording application, it is my first real programming project, so bear with me. What it is is a simple Audio Recorder that records sound directly from the Sound-Card. In other words, what you hear and what comes through the speaker is what is recorded. Many of you may be familiar of this process as a component of the Audacity application by selecting the recording type as Stereo-Mix.*
In making this, I could not find a way to access the users Sound Card directly using actionscript. So what I'm asking is, is there a way to access a users soundcard through AS3 or is it impossible? If there are no pre-built libraries or functions that can do it, would it be possible for me to create one that will help me gain access to the sound card?
If one wants to record sound from the microphone input in the browser one can do so today through Flash. (Afaik there is currently no other good option which works across browsers.Is there a simple swf-plugin which allows one to do so? That is,with the options "Start recording", "Stop recording", "Get wave of recorded sound (or similar)".
I'm currently recording sound and storing the byte array for playback and subsequent encoding to mp3.
Unfortunately though I am getting a click sound at the very beginning of the recording.
I have attempted a couple of methods to try to eliminate this such as:
recording the first .3 seconds with mic.gain = 0; then setting mic.gain = 50; clearing the byteArray after the first .3 seconds then continuing to write the bytearray (in effect deleting the first .3 seconds of the recording.)
Neither of those methods has stopped the click being added.
how I can prevent the click from being added?
Here is my recording/storing code:
public var mic:Microphone = Microphone.getMicrophone(); public var micSilence:uint; private var soundBytes:ByteArray = new ByteArray(); private var soundBA:ByteArray = new ByteArray();
I'm actually working on a website where I want to integrate an online mixer such as[url]...I would like that after the user create his mix, he can record it and save it to a DB.
how could i record the precise time(in milliseconds) where sound effects are being played. This is what i have in mind/ or what i have done so far as an example: i start clicking the 'record button' and the timer starts.Then i play a sound effect and the time elapsed is 1.444 seconds,after that i stop the recording. What i was doing is push the values of the timer elapsed into an array as a string. So when i hit the 'play recorded clip' button, the timer starts again but this time:
it is constantly checking for the timerOn the example i have stated above; when the time elapsed at 1.444 seconds, i expect the sound i've played when i recorded to play. I have the methods needed to fire away the specific sound effect.
basically i simply want to give the option of turning of the sound in my flash via a button (If you press it sound goes mute, press it again sound unmutes) I searched around in the tutorials but i could only find (for this purpose) complicated pan sound control stuff.
1) I don't understand the difference between flex and actionscript. I understand AS is used to write flash apps but what is flex?
2) I am going to create a flash app for recording sound which is then processed by dll's written in c++. Can this be done in flash? I don't want the flash app to communicate with dll's on a web server, I basically want to load the dll's for direct use into the flash app.
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.
I am totally new to Flash Media Server I need to be able to record sound via a Flash app and save it to a server preferably without the use of a Flash Media Server type setup. There is no requirement for live streaming. Is it possible to record the sound and save in memory then pass the data/file as a query parameter to the server?
i have build a small test app in Flash Pro 5.5 overlayed with the AIR 3 sdk.is has just 2 buttons to record and playback audio from the microphone. when i test this on my iPhone 3g - i record myself saying "1-2-3-4-5". but when i playback a half a second or so is missing from the beginning : "3-4-5-".
when i test this on the desktop all is fine is this a result of the iPhone 3g's cpu power or is it a bug or is it my code?
I have a script that plays a sound on that keyframe. You see, the movie loops. So it keeps hitting that keyframe and the sound keeps playing over and over again. How do I stop this? what kind of script? I want the sound to still loop when it's over, but I dont want it to play again on that keyframe. Only when it's over.
so suppose I have a long sound recording as part of a Flash presentation.Can I put on the presentation a scrollbar and start /stop/ pause/ resume buttons as in Media Player or Windows sound recorder that would allow me to scroll to basically jump to any moment in the sound recording? So I guess, I am asking, can such typical sound player functionality be implemented for a Flash presentation in Flash.If there are sample apps that already demonstrate how to write similar code, links
I think worded the question wrong or posted in the wrong catagory I keep geting error messages with this code in AS2.0
Code: if (key.isDown(key.getCode(81))) { _root.samplesound=new Sound(); _root.samplesound.attachSound("sample1")
[code]....
This is the message fore both pieces Statement must appear within on/onClipEvent handler Im trying to get the letter "q" to play a linked mp3 in my library When I apply the code to a seperate layer No error messages shows, but no sound plays. When I apply the code to a movie clip/button object, that message shows up!
I need to create two combo boxes that are populated by an XML file. In the first combo box there are 13 choices and depending on what the user selects I need to populate the second combo box with the correct information. Now I can create the first combo box just fine but when I try to dynamically create the XML file name for the second combo box it doesn�t seem to work. What I am doing so far is taking the data from the first combo box and adding the quotes and .xml with this piece of code:
If you trace that code it creates the file name just fine however the xml file will not load. If I replace that code with the normal xml code like this:
PHP Code:
pModComboXML = new XML(); pModComboXML.ignoreWhite = true; pModComboXML.load("new.xml");
The second xml file seems to load just fine. However, if I create an if statement with all the different xml file names I will have to update the swf every time I add a new choice in the first combo box. So my question is does anyone know how to dynamically create the xml file name?
PHP Code:
pmComboXML = new XML(); pmComboXML.ignoreWhite = true; pmComboXML.load("brands combo.xml");
i add sound to Particular letters in dynamic text box in flash8.
i am having a input box in which i entering some text. If the text is "HI" and i am displaying it in the dynamic output box when a button is clicked. now i need the sound to be played when the mouse goes over the letter "i". i can change the letters. similarly i need for the letter "A" also.
How do i set the maximum width and height of a dynamicly created MC. It is a mc holding an loaded image.
This is what i got sofar:
Code: createEmptyMovieClip("imagecontainermedium", getNextHighestDepth()); // set the alpha to not see the picture loading... imagecontainermedium._alpha = 0;
I have an input text field, with only one character and aligned to left, where i put information dynamically. If i put the character from actionscript, it doesn't align as it should. If i manually enter a character then it aligns well. After i manually added the character, if i try to add it from actionscript too, it aligns correctly. The font i use is created by me, and all the letters are aligned the same way. I embedded the font.
how you properly organize dynamically loaded thumbnails from an xml file, into a grid.What I'd like is for the number of columns and rows to be set in the xml file also, and for the flash file to auotmatically fill out the rows / columns based on how many thumbs are in the xml file.
I've found examples of this type of thing in both as3 and as2, but I can't seem to get my as2 version working properly... how to create a thumbnail grid in as2...I don't really want the thumbs to link to a bigger version fo the image...
I want my site's users to be able to record videos straight from their webcams into my site. Videowhisper is one such tool which seems to work fine - [URL] But I'm looking for opinions on better / more scalable / reliable solutions. Paid solutions are fine.
I'm trying to load sound dynamically. I have 4 loops (mp3) and I want them to go like this: loop1 - loop2 -loop1 - loop3 - loop1 - loop4 and repeat... Is this possible? I've tried onSoundComplete but how will I get it to start all over?