Actionscript 3 :: Mixing 2 Sounds From ByteArray?

Mar 28, 2011

I have build a mixer and save all the sequence in an array and then play it again, now I want to save the mix as an MP3, I have looked for any way to save the mix and the answer is to load the sounds as byteArrays (sound.extract) I have acomplish that but I don't really know how to store all the sounds in just one ByteArray in order to save it as MP3, I got this code just for example, loading 2 audio files and store them in separate ByteArrays, and play each sound, how to store the 2 byteArrays in just one?

var mySound:Sound = new Sound();
var sourceSnd:Sound = new Sound();
var urlReq:URLRequest = new URLRequest("Track1.mp3");

[Code]....

View 3 Replies


Similar Posts:


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

Mixing Videos In Flash?

Jul 12, 2010

is it possible to mix videos and webcamera streams in flash to send them to flash media server as one stream?

Forexample put two webcamera streams side-by side and send them to server as one steam.

View 1 Replies

Mixing Arrays Randomly?

May 12, 2009

How can I mix an array randomly in as2? I have this code so far:

Code: Select allfunction startGame(){
for(i=1;i<=52;i++){
cards_array.push(i)

I gues you see this is for a card game (hearts).If I want to mix the cards I have to mix the array...

View 2 Replies

IDE :: Mixing Flash And HTML?

Jan 29, 2009

I have a question regarding navigation using Flash and HTML. I'm building a website that will hopefully feature an animated navigation area. Ideally, when the user clicks on the link inside the Flash clip, it plays a short animation and then loads the target HTML page.Is it possible to merge a flash movie clip and HTML content, and have the flash part link to other webpages? Or do I have to build the entire website in flash and use the timeline to link between "pages"?

View 3 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

ActionScript 2.0 :: Use With Music Is Affecting All Other Sounds - Button Sounds And Background Sound

Apr 16, 2010

I followed the mp3player tutorial (part 3) from [URL] and got it working fine. Only problem is that the setVolume I'm trying to use with my music is affecting all my other sounds - button sounds and background sound. I'm aware of the createEmptyMovieClip/attachSound approach and got it working on my other sounds. But Lee's tutorial-mp3player is using a slight different technique, and so my normal approach doesn't quite work.

[Code]....

View 7 Replies

ActionScript 3.0 :: Synchronize Sounds Perfectly To Do A Kind Of Audio Mixer Using Different Sounds?

Feb 7, 2011

I want to synchronize sounds perfectly to do a kind of Audio Mixer, using different sounds. [URL] does it perfectly, I've been researching and researching and I just don't know how to do it! How does [URL] synchonize audio so perfectly? you can even change sounds and the new ones will come on time! How do I do that? Is it just Action Script? or something else?

View 1 Replies

ActionScript 3.0 :: Mixing Flash With HTML?

Jan 26, 2010

I'm building a Flash nav with dropdown menus that will drop down in front of some html (i.e. text, buttons, images). In my initial testing, even though the drop down area in my Flash movie is transparent, it's still physically in the way if I try to get to html buttons or text underneath. Is there a way for a Flash movie to change size, (i.e. get larger on roll-over to accommodate dropdowns, then get smaller on roll-off?

View 2 Replies

ActionScript 3.0 :: Mixing Mp3 With Recorded Sound?

Aug 10, 2011

I need to mix 2 sound data, one is a mp3 sound byteArray and the other one is a recorded sound byteArray.  I use URLLoader to load the mp3 external file into a byteArray.  The sound is recorded on a microhpone and stored in another byteArray.  I need to save to a file - the mp3 comes first and the recorded sound after.  I am using WavWriter to write it out as a wav file.
 
The mp3 is in 44Khz and 16-bit rate.  The recorded sound is in 44Khz and 8-bit.Is there a way to do this?  I have researched for a few days already and tried a few things, but still cannot find the correct way to do this.

View 4 Replies

Flex :: Mixing Different Version Of The Same Library?

Aug 25, 2009

How can I use two version of a library in the same project in Flex (using Eclipse). (in my case the library is papervision3d , and I have written some code using the older version, but due to big changes many of the used function exist no more)

View 1 Replies

Flash :: Mixing Two Streams And Saving Them To FLV With FMS4?

Mar 30, 2011

I'm trying to figure out how can I mix two NetStream objects into one FLV file using Flash Media Server 4. Saving one stream isn't problem but I have two concurrent streams (one is pure audio from Microphone object and second is Camera+Microphone) and I want to save them as single FLV using NetStream.publish(streamName, 'record').It will be kind of live chat but only with one video.

View 2 Replies

Actionscript 3 :: Detect When The Shader Is Done Mixing The Audio?

Jun 10, 2011

so this the code with it i am able to mix several trackswith a Shader done in pixel bender.the problem here i don't know when the mixing is finish or all the sound reache their endto be able to save the bytearray into a file any Event or something like that

package
{
import flash.display.*;

[code].....

View 1 Replies

ActionScript 3.0 :: Mixing Different Audio Files And Exporting To Mp3?

Jul 10, 2010

it is possible to mix different audio files and export them into an mp3 file for the end user to download to his computer.Actually, I know it can be done because they do it in various sites (aviary's myna , looplab , audiotool , remixgalaxy), I just need help on how to do it. I have the mixing part pretty much covered. My problem is with exporting the file to an mp3. I imagine that some external progamming language might be required, but I couldn't find an answer on Google... Php is my prefered language, but I'm willing to learn another one if it's not possible with PHP.

View 6 Replies

ActionScript 3.0 :: Recommendation For Mixing Flash And Html?

Jul 11, 2010

Imagine a website that sells clothes. If you click on the jeans link, a new page opens up with all of the different jeans. Anyway, I am building a flash module to put up on the page. It will be the one pulling up all of the different jeans from a database, rather than before where if you clicked jeans it brought you to a new page, flash will simply open it right up on the home page. Is there going to be an issue with resizing? For different browsers, and different resolutions, am I going to have a problem?

View 4 Replies

Media Server :: Mixing In Live Streaming Microphone And MP3

Nov 4, 2010

We intend to develop a Flex client application the user to send audio from your microphone and mp3 at the same time to a server that Flash Media Server.It would be a mix of microphone and music in mp3 that is playing in the application at the same time transmitted to the listeners.What will be the version of Flash Media Server that enables this mixing of audio from microphone and music played on the client in flex?

View 1 Replies

ActionScript 2.0 :: CS3 Getting Sounds To Start Again After Using Stop All Sounds

Nov 29, 2009

I have a film with 4 scenes in it: Here's a link to the film and as you can see the film does not play the music the second time because of the StopAllSounds function which is probably the wrong code to use. The first scene is just a button with 1 frame, a stop action and a music clip. The second scene is the film. The third scene is the credits fourth scene is a Play again button. I have a Stop all Sounds action on the fourth scene because if I do not use it and I press the Play Again button, the music from the first song keeps playing but also the music from the film starts up again so it starts to play twice. What I want to know is, how do I get the music to stop at the end of the film but start up again once I hit Play Again?

I am using Flash CS3 if that helps and using Actionscript2.

View 2 Replies

Flash :: Mixing AS2 And AS3 - Trace Out The Current Label In Movie's Main Timeline

Feb 23, 2010

For the life of me I can't figure out how to trace out the current label in my movie's main timeline. This is in AS3. I have a button on stage that spans the timeline of the movie. It detects keypresses. I want to trace the current frame label that the play head is on.

[Code].....

I get "_level0" for this...and undefined for the rest. What am I doing wrong here?

View 1 Replies

ActionScript 3.0 :: Mixing Stage Mouse Events And Children Events?

Sep 30, 2009

I have an animation that I want to start when clicking on the flash window. However, I've also have some buttons on the stage. If I add an event listener for MouseEvent.CLICK on the stage, then it 'eats up' the events and the buttons don't work.

I've tried some tricks, by adding some invisible buttons on top of the real ones, and use the MOUSE_OVER event to selectively enable/disable the mouseEnabled flag for the stage, but didn't work because it complains that the property or method doesn't exist (which I find odd).

View 3 Replies

Send A ByteArray To FMS?

Sep 23, 2011

Who knows how to send a ByteArray to FMS?

View 1 Replies

IDE :: Creating A Swf With ByteArray

Jul 14, 2009

I am trying to create a new swf with AIR and Flash CS3. All I want to do is push a button and have a new swf saved to the desktop with a line of actionscript in it. The actionscript can be anything stop(); - for instance.I have been messing around with ByteArray and I can save an image to a swf but I can't find any information on what I want to do.

View 2 Replies

ActionScript 3.0 :: Use ByteArray Or Something Else?

Dec 12, 2010

at the current status of my project i must write an application (With AIR or ZINC) who its job is:

1st-getting some files from user. 2nd-modify them with an algorithm (encryption or encoding or changing byteArray) to simply corrupt the file and make it impossible for other applications to read the corrupted file!

[Code]...

View 4 Replies

ActionScript 3.0 :: UTF-16 Representation In A ByteArray REgards

Jan 17, 2010

Is there a way to write a UTF-16 string into a ByteArray in Flash/AS3? Basically I have a string (var test:String="allan"; for example) and I would like to write that into a ByteArray with UTF-16LE encoding. In this case it would be "61 00 6C 00 6C 00 61 00 6E 00".
 
I've tried using utf16le.writeMultiByte( clipText, "utf-16" ); but it just comes out with what appears to be UTF8 (or just straight ASCII given the test string).
 
The use case is to save a UTF-16LE file using FileReference.save(), which I understand I can do by passing it a ByteArray with the correct character encoding in it. Passing just a string saves as UTF-8. Hence the need to convert and store into a UTF-16LE representation in a ByteArray.

View 13 Replies

Actionscript 3 :: BitmapData To ByteArray?

Jul 28, 2010

I am trying to serialize a Bitmap to store in an XML file. My plan is to turn the BitmapData into a byteArray, but I haven't been able to fine an example of this.

View 1 Replies

Xml :: Loading Bytearray Into XML Object?

Oct 14, 2010

I get Index out of bounds when trying to readObject on my Byte array into the XML object.

private var fr:FileReference;
private var data:ByteArray = new ByteArray();
[Bindable]
private var dataXML:XML = new XML();[code]....

The Byte array is created by loading a file using FileReference

View 2 Replies

Flex - SWF To Bytearray From A PHP Script?

Nov 7, 2010

i'm using AMFPHP to stream content from my server to my Flex application, since Flash is a clientside technology i would like to make it harder for people to grab protected files, so i created a system that streams swf file to another flash player, i've done all the testing on URL stream, now i want to pass the swf file to the player as bytearray .. since i think it's safer and harder to break and in the future i even might do some encryption of my own if i became more familiar with bytes and bits .. anyways is my method the best one? (SWF to ByteArray?) or is there a better one? if the bytearray method is the best, i am facing a problem in outputing the swf file in the right format, i'm using a very primitive method .

[Code]...

View 1 Replies

Flex - Loading Swf With Bytearray In AIR?

Jan 25, 2011

We have requirement with the AIR application which loads the flex generated swf which inturn loads the flash generated swf using SWFLoader. This is not working as desired.This gives the following error: SecurityError: Error #3226: Cannot import a SWF file when LoaderContext.allowCodeImport is false.

[Code]...

View 2 Replies

Php :: Flash - Sending ByteArray Through PHP?

Mar 22, 2011

The BLOB field (pic) is turning out as 0 Bytes when trying to send ByteArray through as3 to PHP, so i assume the PHP script or the HTTP_RAW_POST_DATA isn't working.I think the Flash part is working, I have set a trace() to see if the bitmapdata is coming through and it seems it is, so I'm assuming its my php side.3

private function export():void
{
var bmd:BitmapData = new BitmapData(600, 290);

[code].....

View 2 Replies

ActionScript 3.0 :: Mp3 Creation Using Bytearray?

Feb 2, 2010

I want to make a flash application in which i will load 3-4 different mp3 files of different instrumental music. After loading it I want play all files. Further I want to save or create a merged mp3, from all mp3s sound files in a single mp3 file.

Is it possible to convert different mp3 sound track in to different ByteArray and later using any other technology like PHP or C# can we merge all byteArray in a single byteArray to create a single mp3 file.
So that we can listen all instrument playing in a single mp3 file.

View 8 Replies

ActionScript 3.0 :: Load Swf As Both ByteArray And Swf?

Mar 31, 2011

I have a load of information in a swf that I'm loading at runtime. From that swf I need to get raw vector data out of some MovieClips, and other MovieClips I need to instantiate and put on the stage.Currently I can get at the vector data by loading the swf as a ByteArray using a URLLoader and parsing it with a bit of help from as3swf.

However, if I want to instantiate one of the MovieClips directly I would usually load it with a Loader and get at the MovieClip via loaderInfo.applicationDomain.My question is: can I either load the swf as a ByteArray with URLLoader and somehow instantiate MovieClips from that, or can I load the swf as a DisplayObject using a Loader, get the MovieClips and then convert the swf to a ByteArray before giving it to as3swf for parsing?

View 2 Replies







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