Actionscript 3.0 :: Storing Mic Input In A Bytearray?

Dec 9, 2008

I'm planning out an app that will (amongst other things) let the user speak into his mic and replay his voiceclip. I don't really need to permanently store the sound, it's enough if I can record it, replay it and overwrite it again if the user records another sound clip.

So far I gather this is impossible in Flash without the use of a mediaserver. Then again if I'm right the only way a media server can help me is by actually streaming the microphone input to the mediaserver, actually storing the sound as an mp3 file or similar, and then serving the mp3 file back to the app. It seems a bit overkill for just replaying short soundclips while the app is up, soundclips which are going to be re-recorded over and over while the user is using the app and trashed when he stops using the app.

Anyway, I recently heard something about how the flash 10 player actually allows you to store an mp3 or dynamically generated sound in a bytearray. It doesn't seem like a great leap to me to assume that if you can generate a sound and stick it in a bytearray, you can store mic input in a bytearray. But I haven't been able to find any info on the latter.

Has anyon experimented with this or found out a nay or yay on (temporarily) storing mic input in bytearrays?

View 2 Replies


Similar Posts:


Flex :: ByteArray Manipulation - Storing Binary Data In String?

Jul 28, 2011

I have some binary data and I can't store it in a string, as such I'm using a ByteArray. The problem is that I need some functionality that comes with strings, to be specific I need the charAt, substr, indexOf and substring methods.

View 1 Replies

ActionScript 3.0 :: Storing Input Text To Array?

Nov 28, 2011

The user inserts 6 different numbers into the input text box between 1 to 49 also i need check if the number is not higher than 49 or smaller than 1 . I also need check duplicate entries and empty space from input text box, which error message will prompt the user. Then i need to store the input from user to array.

Here what i got so far

import uk.ac.uwe.multimedia.lottery.LotteryDraw
var lottoDraw:LotteryDraw = new LotteryDraw();
lottoDraw.chooseNumbers();

[code]....

View 3 Replies

Actionscript 3 :: Introduce A Sound From The Library To A ByteArray (and Then Play That ByteArray)?

Feb 16, 2011

I am working on a game, made with Flash (using AS3) The game has a fast ball and when this ball hits an object it has to make a sound... but the sound starts with delay (so the ball is far away when the sound is played).This sound is edited by me and it hasn't got any silences at the beginning.The method i'm currently using is the simplest one:

public var sonidoPuntos1:sonidopunto1 = new sonidopunto1()

and then...

sonidoPuntos1.play()

I am trying to introduce the file into a ByteArray and then playing it from there...

View 2 Replies

ActionScript 3.0 :: Convert Wav ByteArray To Mp3 ByteArray?

Mar 28, 2011

I know its a true Pain but does anyone know any way to convert wav ByteArray to mp3 ByteArray.

View 1 Replies

IDE :: Storing To A Txt File PHP?

Jan 9, 2009

i have 4 txt boxes which load 4 prices from a txt file that works ok. if the user then changes the price in the box and hits a button:-

on (release) {
time = new Date();
url = "./store.php?time="+time.getTime()+"&post="+escape(po

[Code].....

View 4 Replies

ActionScript 2.0 :: Input Quiz - Check Input Answer Against Random Display From Array

Jan 21, 2009

I am trying to check input answer against random display from array. but sometime it trace not correct when it is correct this is the code i use

[CODE]....

View 7 Replies

ActionScript 2.0 :: Make The Cursor Automatically Jump To The Second Input Box After The First Input Box Is Filled With A Character?

Aug 24, 2005

If i have two or more input boxes to create a crossword puzzle, how can i make the cursor automatically jump to the second input box after the first input box is filled with a character?

View 3 Replies

ActionScript 2.0 :: Create An Input Text Box That Puts The Users Input Into A Global Variable?

Apr 12, 2007

i created an input text box that puts the users input into a global variable, but when i test it it gives me not only what i have typed in but all the html formatting for the font that my input text box has on it.I only want the text that i have typed in to go into the variable but the wackload of html is going in there too. ive tried a few different things, rewriting my code, recreating the text box, changing settings, dont know what im missing.

View 10 Replies

ActionScript 3.0 :: Test To See Whether What Is Input Into A Text Input Box (flash Component) Is Not A Number?

Jul 3, 2009

I'm trying to build a fahrenheit to celsius convertor in AS3. How can I test to see whether what is input into a text input box (flash component) is not a number? This isn't correct but you can get an idea of what i'm trying to do:

if (celsius_txt.text == NaN || fahrenheit_txt.text == NaN)
{
//do something;
}

View 6 Replies

Actionscript 3 :: Make Input Text Control Ready For Input On CreationComplete In Flex/MXML?

Mar 19, 2012

I have the following Application tag code in my widget:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*"
width="100%" height="100%" minWidth="200" minHeight="200" layout="absolute"
creationComplete="init()"
defaultButton="{Send_btn}">

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Make Input Text Box Empty And Ready To Get Next Input From Starting Position?

Jul 26, 2011

i have an one input text box, first i type text into it and press space bar at this it will become empty and ready to accept next input from starting position, i make the text box empty by

textbox.text = "";

but the cursor not set to initial position in text box it consider "" as "space" and cursor will display after one space only, i need that cursor again move to starting position..

View 3 Replies

Php :: Storing Data From Flash?

Feb 2, 2011

What is the best way to store data gathered from a flash file, and load it into another flash file? Would xml or php work? and could it be instantaneous? Here is a diagram of what i am trying to do...

[URL]

View 2 Replies

ActionScript 3.0 :: Storing The Multiple Swf?

Aug 26, 2010

I have multiple swf files for background . I have to load the entire swf's first and have to store it in array . Is it good to store swf in array or dictionary?

View 9 Replies

Actionscript 3.0 :: Storing XML Data?

May 6, 2009

I need some help with my code please. I have a for loop that creates sprites and loads images into the sprites theough XML. I have additional nodes for each image and sprite that get created that I want to store and call when I roll over the thumbs. What would be the best way to do this? I had to "improvise" and have the for loop create text fields to hold the data and then call it when I roll over throught "evt.target.

[Code]...

View 1 Replies

ActionScript 2.0 :: Storing Path In A Var?

Jul 29, 2008

I'm not entirely sure how to go about this, but I want to store a path inside a var to reuse throughout some interface code:

Code:
var thisPath:Object = pageText_mc.pageCntrls_mc;
[thisPath + "."]prevButton_mc._visible = false;

[code]....

View 3 Replies

ActionScript 2.0 :: Storing Variables From Php?

Jan 13, 2009

i'm trying to make a shoutbox/guestbook for my site in flash but i'm running into this problem. I'd like to have some sort of ip check, and i've got flash loading a var from php, and when I assign a text field the variable the users ip shows up just fine. my question is this-

how do i save whats in said text field as a string or something to use?

View 6 Replies

ActionScript 2.0 :: Loading A SWF And Storing For Later Use?

Jul 15, 2009

I'm building a website which is entirely in flash. There is a large main flash file and as you navigate through the site, many other external SWF's are loaded. The problem is that some of these are quite large and take a while to load. I was wondering if there is a way to load an SWF without showing the user that it is loading (no progress bars or anything) and then not doing anything with it once it is loaded, but having it ready for when I want to use itsee the site to understand: If you click on the "band" link, it will load a page with several other links. Most of them you click will simply say "Coming Soon", but the Media, Contact, and Tour links currently work and are good examples of what I am talking about. How would I load one of these before the user has clicked it so it is ready?

View 4 Replies

IDE :: Storing MANY Images In Effeciently

Feb 3, 2012

In a project I am working on, I will have hundreds- no, thousands- of small (32x32 pixels) images that I need to store in some way. What I need to know is what the most effective way would be. By effective, I mean "How can I keep the file size as small as possible and still retain its speed?". I thought this would be something somebody has discussed (and I still believe so), but I can't find it via Kirupa's search feature or googling.

View 2 Replies

Actionscript 3 :: Placing Cursor Into Input Textfield For User Input?

Dec 15, 2009

What easiest way to place cursor (focus?) into an textfield input box for receiving user input after an event?

View 1 Replies

ActionScript 3.0 :: Full Screen Input Not Allowing Text Input

Jun 8, 2010

Notice full screen Icon at top left. My contact for will not except text when it's in full screen mode.

View 1 Replies

ActionScript 3.0 :: Input Text Field Won't Accept Numerical Input

Apr 15, 2011

Using AS3 to create a basic number guessing game but for some reason the input text field won't accept text input. I can't figure out which piece of code is causing the problem and it's driving me nuts considering it's from a tutorial.

Code:
package
{
import flash.display.MovieClip;

[code]....

View 2 Replies

ActionScript 3.0 :: Storing Name Of Classes In Array

May 16, 2007

I am doing an AS3 application. In the beginning of my AS file, I need to embed different textures as the following:
Code:
[Embed (source = "./myImage1")]
public var Image1:Class;

I have to embeed n bitmaps. Then I have to create an instance of each oh thease classes.
I want to store the names of thease classes in an array so I will be able to create an instance of a class by accessing the array.

Something like this:
Code:
var arrayOfClasses : Array = new Array();
arrayOfClasses.push(Image1);
arrayOfClasses.push(Image2);
...

Then I want to go through the array and do :
Code:
var variable : Object = new arrayOfClasses[0];
But this dosen't work! How Can I build an array of classes? Is it doable?

View 5 Replies

Storing Multiple Animation Files?

Aug 19, 2009

I want to have a TV screen and hundreds of (small) flash animations load up in the 'TV'. I'm assuming I'm going to have to use Actionscript, so I'm looking into that right now. However, what would be the best way to organise this? Each "TV" will have a different set of "Channels". Do I create each 'channel' and save them as seperate SWF files, or is it possible to have them all in one main file. I can then flick through each 'channel', which essentially unloads the current animation and loads the next one

View 2 Replies

ActionScript 2.0 :: Keypress Storing Data More Than Once?

Sep 19, 2010

When a key is pressed, data is sent to PHP to be stored in a MySQL database. For each key press, only one entry should be posted. it re-posts exponentially (e.g., 1st key press = one post, 2nd key press = two posts, 3rd key press = three posts; thus, totaling six posts).Initially, the event listener for key press existed alone on a single frame. When that was the case. This issue did not occur. I added an additional frame so that I could set to clear out all variables and start fresh.

so frame 4 will have :

KeyListener = new Object();
KeyListener.onKeyDown = function(){
if (Key.isDown(69)){ // if key pressed is "E"

[code]....

View 1 Replies

ActionScript 2.0 :: Storing Variable To Use In Another Movieclip

Jan 5, 2011

This script from MC 1 loads an template from the library and then creates as many instances as the XML says.

It also creates a dynamic variable called ppp. This variable i want to store in each of the newly ceated instances and then use it in another movieclip to load the right path where i want to load another xml file in Flash....

This is what i want to accomplish:

xmlData.load("albums/album"+ppp+"/images.xml");

This code is in another movieclip (MC2) and gets loaded in frame 5 of MC1.

Another soltuions is if it is possible to read the value that is loaded in the dynamic textfield nummer_txt from the template:
Actionscript Code:

[Code].....

View 2 Replies

Data Integration :: Storing Value From XML Into A Variable?

May 17, 2006

There is a combo-box by the name "cbJobs" and it gets its value from the XML file named "data.xml".. I want to store the value transferred from this XML file into a variable.. so basically someone told me to use the code

on (change) {
_root.subject = this.getValue();
}

the only problem with this code is that it gets activated only after I "change" the value in combobox by pulling it down.. I want to use this value obtained from _root.subject as a subject in the script

getURL("mailto:abc@abc.com?subject="+_root.subject);

View 1 Replies

ActionScript 3.0 :: Storing Url In Text File?

Apr 9, 2009

I have 1 buttons in my flash movie. and want to use this swf in some other projects. just this button link will change in each project, so will also the button text. I dont want to edit flash file for each project. Can I use a text file for URL of button and I change text file to edit link of buttons and text of button?

View 2 Replies

ActionScript 3.0 :: Storing Set Of Values In An Array?

Sep 9, 2009

I have 15 sets of x and y values, that should be stored together. I was thinking I could have an array, holding 15 other arrays, each holding the x and y value? Is that a valid way to do this? Also, is there a way to create those arrays holding the x and y, dynamically, so they just get numbered?
 
MainArray[
subArray[x1, y1];
subArray[x2, y2];

[Code]...

Obviously, above is not correct AS. Is this even a way to do this? Are there other much better ways?

View 3 Replies

ActionScript 3.0 :: Using And Storing Instance Names?

May 30, 2011

I know you can store instance names in an array and call on the array values to reference the instance names in it.I was wondering if there is any way I can take an instance name, feed it directly into a function and use the name of the function variable/array/whatever to affect the object instance of whatever I name.

if it's an array of instance names, what is it actually an array of? Also, is there any way to hold and reference an instance name in a single value? sidenote: this doesnt have much to do with my question, but can arrays be fed directly into the header of a function?

View 6 Replies







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