Flash :: Multiple Audio Files One Sound Object?

Nov 11, 2010

Is it possible to play multiple sound files using a single sound object? (I've looked into this back when I was using Flash CS3, but I want to know if anything has changed.)

(I'm trying to make a playlist which will play music in the background of my SWF movie and then have a frame where users can change the song and the volume.)

View 2 Replies


Similar Posts:


Flash 8 :: Audio - Get Haxe To Play Sound Files When Compiling?

Jan 20, 2010

I'm having some trouble getting Haxe to play audio files in Flash 8.At the top of my hx file, I have:import flash.MovieClip;import flash.Sound;and, within the class itself, I preload a lot of image files along with the names of the audio files.The idea is to do a slideshow with audio content. Basically, display the first slide and play the audio associated with it.Then, once that audio is finished, move on to the next slide and next audio file. I have the slides fading in and out okay but when I tried to add sound, nothing comes out the speakers.The following code is what I'm doing - the sound file associated with audios[0] never starts playing and I'm at a loss as to why.

class Whatever {
static var master : MovieClip;
static var slides : Array<MovieClip>;

[code]......

View 1 Replies

Flash :: IDE - Multiple Sound Files In Timeline

Jun 24, 2009

I'm having a little issue with the sound on my flash website. The way my site is set up so far is that after the preloader, i have an enter site page that holds there until the user clicks on the "enter site" button. Once they click that button it takes them to the site. I would like to add 2 different sound files to this. One file for the enter site that loops over and over until the user enters the site and then that sound file will stop and the other sound file will start.

When I tried this I could not get the first sound file to quit playing once you enter the site. So basically when I am on the "enter page" it's playing the looping file fine but when I click "enter site" it plays the other audio file on top of the one looping. I hope this makes sense.

View 1 Replies

ActionScript 3.0 :: Deleting/freeing Memory Of Sound/Audio Files?

Jul 27, 2010

I am trying to create a .dispose method for my Sound files, however it seems I am unable to deallocate/free memory for Sound files, no matter what I do!this doesnt work:

ActionScript Code:
var mySound:MySound= new MySound();
mySound = null;

and neither does this: (the 'delete' dynamic variable was suggested somewhere)

ActionScript Code:
var playerObject:Object = new Object(); 
playerObject.sound =new MySound();
playerObject.sound = null;
delete playerObject.sound;
playerObject = null;

it seems if there was a reference to the SoundFile in the code, the Memory cannot be re-allocated.however If I am loading an external file, interestingly, this does work:

ActionScript Code:
var mySound:Sound= new Sound(newURLRequest("sound.mp3"));
mySound= null;

it looks like you cannot Free memory of Sound Files that are Loaded from the Library, but you can free it if its external.

View 5 Replies

ActionScript 2.0 :: Pause And Play Multiple Audio Files?

Nov 5, 2010

I have a flash "hear from the experts" video in which multiple speakers discuss an issue. I have it set up so you can listen to each speaker one at a time, however, I don't know how to pause and play each speaker so if you wanted to pause it and return or pause it and start a different speaker, you could do that and then resume where you left off. It would be even cooler if I could add some sort of status bar that shows how far into the audio you are, and you could skip ahead. I uploaded the file in CS3 - I had to actually delete the MP3s that are triggered to play on each play button in order to make it small enough to upload, but if you look at the code you can see it there.

View 0 Replies

ActionScript 2.0 :: Sound Object - Specifying Only Certain Audio To Stop

Nov 14, 2005

I am creating a flash project which contains video on a few pages. The project also contains background music which loops continuously. The goal is to have the background music stop whenever the user is on a page containing video and for the music to play again when the user leaves said page. The script I created works to stop the music, but it also stops the audio contained within the video and causes the video player (by proxxus) to lock up.

Here's the setup:
Library:
music.wav - linkage = "myMusic01"

Main Timeline:
Code:
//-- create a variable to determine if the current movie contains video
var currMovie:String = "notVideo";
//-- start playing sound object
myMusicMc.myMusic.start(0, 999);
[Code] .....

On the actions layer of the movie clip containing my navigation controls snippet of the callback used
Code:
videoLink_mc.onRelease = function() {
_parent.prodDetail_mc.gotoAndPlay("video");
_root.currMovie="Video";
}
on all the other buttons currMovie is set to "notVideo".

View 12 Replies

Actionscript 3 :: Audio - Combine Multiple Raw Sound Data And Save Them Into One File?

Jun 7, 2011

i built and application that load multiple sound files play it in a sequence as the user order them but i wonder is there a way to save this sequence into one mp3 or wav file

View 1 Replies

ActionScript 2.0 :: Get The Levels Of Volume Of Multiple Sound Frequencys From An Audio File?

Jan 9, 2005

How can I, in Flash, get the levels of volume (peak levels) of multiple sound frequencys from an audio file, so that flash would recognize them?

View 1 Replies

Audio :: Extract Sound Object To A Mono Byte Array In AS3?

Jan 18, 2012

I'm trying to prepend the byte array of a sound object to a captured microphone sound byte array.

It works, but the extracted sound object get pichted down and doubled in length. I guess this is because the byte array of the sound object is in stereo, while the mic byte array is in mono.

I have this:

sound.extract(myByteArray, extract);

myByteArray now contains the stereo data. How can I turn this to mono

UPDATE:

Here's a working solution:

existingByte.position = 0;
var mono : ByteArray = new ByteArray();
while(existingByte.bytesAvailable) {

[Coe]....

View 1 Replies

ActionScript 1/2 :: AS2 Independent Volume Control Of Sound Object And Streaming Audio

Mar 8, 2010

I've got a presentation that features an audio loop for background music and streaming audio on the timeline for the voice over.When I try to lower the volume of the background music (sound object), it also effects the voice over (streaming).I'm a total novice, so try to use laymen's terms.[code]And this is on the Frame that contains the movieclip with the voice over.I'm trying to fade the background music ONLY:[code]

View 10 Replies

Media Server :: Creating Streamable Audio Content From Short Multiple Input Files

Jun 9, 2010

My question is how possible creating streamable audio files /mp3/flv/ from multiple input files. The server is vps linux without soundcard, installed flash media server 3.5. My task is creating mixed mp3 output file.The input files are 2 mp3 file = 2 channel, uploaded to a server by the user.Controls: volume pitch, equalizer, fading that is controlled from client side flash appThe problem it should be in real time, when the user control the volume pitcher channels  etc  could be heard the result in the client's flash player on client side.For that purpose I tried to split the audio files into 1 sec pieces, and changing the splits only, and when done joining them together.

Feeding them to flash media server there was more problem:-the server streamed not the actual file but probably from cache -the streaming was always stopped after 1-2 seconds - using client side dynamic streaming /without joining the files / only the last file was played - using server side playlist playing more files was not played all the files So the question which way possible creating streamable files, or is there a better solution than splitting them.

View 3 Replies

ActionScript 3.0 :: Loading Multiple Sound Files?

Jul 28, 2009

I am trying to put a few songs on a website, not as an .mp3 player, I just want to be able to assign individual buttons to control them.ow, and it works great. I would like to now how to add more and assign them to their own buttons seperate from the other songs.This is the code I have for one song

var url:String = "";var urlRequest:URLRequest = new URLRequest(url);var sound:Sound = new Sound();sound.load(urlRequest);var sc:SoundChannelvar startTime:uint=0;
playBtn.addEventListener(MouseEvent.CLICK,playF);stopBtn.addEventListener(MouseEvent.CLICK,s

[code]......

View 5 Replies

ActionScript 2.0 :: Multiple Sound Files Combined?

Jan 15, 2007

The quick question is I can only get this to play sound once - then it won't do it again I am making a math game for my young kids - it adds numbers from 1 to 5 the variables A & B are randomly generated and make C

The sound reads out a string A + plus + B + equals + C (5 sound files)It does this the first time the flash is played, however, when the flash movie goes back to the previous frame, and generates new variables - it will not play the sound files anymore.

[Code]...

View 1 Replies

ActionScript 3.0 :: Possible To String Multiple Sound Files Together Using Code?

Nov 18, 2009

Say I recorded and imported sound files of my voice saying "Two",  "Four", "Equals", and "Plus"Would it be possible to have Flash on click string together those sound files like a string so that the user would hear:

View 1 Replies

ActionScript 2.0 :: Multiple Streaming And Sound Files Manipulation

Sep 3, 2004

I have a site where as you click links, you move forwards through a city. I want to fade sound files in and out, overlapping, depending on where you are in the city. (The site is [URL]). As yet, I can't have two sounds playing at once. I have found a site with the effect I want, it's at [URL]. (Great site, by the way)

My code is as follows. I have two sound loops at the moment, one of cicadas, one of a city at night, both saved as separate .swf files, which I have loaded onto the main timeline on layers 14 and 15. The code for the two loops is:

cicadas.swf, FRAME 1
var volPercent = 20;
cicadas = new Sound(cicadas);
cicadas.setVolume(volPercent*2);
city.swf, FRAME 1
var volPercent = 20;
city = new Sound(cityMC);
city.setVolume(volPercent*2);

Once I load these two onto different levels, I get no sound. If I delete one, the other will play. I have tried loading the sound objects into empty movie clips, but then the entire file has to load before it will start playing. I need a way to stream multiple sound files, and have control over their volume.

View 4 Replies

ActionScript 3.0 :: Loading Multiple Sound Files With A Single Class?

Nov 11, 2009

I am working on a simple game for kids. The game revolves around the alphabet and it is all voiced. So I have a good number of sound files that I need to call on at any given moment.In AS2 I would just link all of the sound files to variables at run-time and have them ready to play when the interaction dictated it.... with the way "linkage" has changed in AS3... I feel like it would be a bad idea to have over 50 different class files (one for each sound file) so I am looking for a cleaner solution... that and I am guessing that having redundant class files misses the point.I haven't had much luck finding a forum post or tutorial that talks directly about this type of issue but the idea is a little foreign right now so I am sure I have stared directly into the gold mine and not noticed. I am very interested any thoughts or links on the subject.

View 1 Replies

ActionScript 2.0 :: Multiple Sounds - Creating Separate SWF Files To Represent Each Sound

Sep 20, 2002

I've created a small application that links various Sound Clips to corresponding Sound variables, and the individual start and stop commands work fine. However, when I try altering the volume, the controls affect all the sounds in the movie. I'd like to refrain from creating separate SWF files to represent each sound, but I will if I have to.

View 1 Replies

ActionScript 3.0 :: Using The Same Object Across Multiple Swf Files?

Aug 4, 2009

I have 2 FLA files, a "menu.fla" and "game.fla"

In my "menu.fla" I create an object of my class:

var gameEngine:Engine = new Engine();

I click on a button in "menu.swf" to load my "game.swf" into the window...

I would like to know how can I use the "gameEngine" object in my "game.swf"?

Also, I have to code that runs on a "left-arrow" key-press in "menu.fla", but I also have some code running on a "left-arrow" key-press in "game.fla".

Once "game.swf" is loaded, and I press the "left-arrow" both the code from "menu.swf" and "game.swf" executes.. I only want the game.fla's "left-arrow" code to execute?

I also noticed that "game.swf" is basically layered over "menu.swf". Is there a more efficient way to load .swf files?

View 0 Replies

CS4 Media Encoder Audio - Audio Sound Stops After A Few Seconds From The Beginning?

Aug 4, 2009

I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...

View 1 Replies

Media Server :: Send Sound With Stream (both Sound And Mic Audio)?

Oct 6, 2011

I have a broadcasting project that I've got where the host of the show can have multiple sound effects they can use on their show.I'm wondering if the only way to go about this is for all the clients listening to the show need to download the mp3 of that sound effect or if the sound effect could come from the host ...like combining his mic (for his voice) but also straight audio (the sound effect) into the stream.

View 1 Replies

Flash :: Dynamically Create New Sound Objects Based On Raw WAV / DATA Or Other Sound Object?

Jan 31, 2012

Is there any AS3 library or code-snippet that can create altered versions of a Sound object on-the-fly (at runtime)? Either based on:

An existing Sound object; A ByteArray object;

For example, say you have a "dry" sound of a gun-shot. You could:

[Code]...

View 1 Replies

Flash - Take Two Sound Objects And Combine Them Into One Sound Object

Nov 15, 2010

Is it possible to take two Sound objects and combine them into one Sound object so that one Sound plays, and then the second plays right after it? I can just play the first Sound and then the next right after it, but it would be much cleaner to combine them before playing the audio.

View 1 Replies

Media Server :: Recording Video/audio Files Using Flash Media Server Through Rmtp, And Allow Users To Access The Recorded Files Through Http?

May 25, 2009

As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?What I am trying to do, is to record a user's microphone's input and save it to the server.fterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?

View 1 Replies

ActionScript 3.0 :: Play Mp3 Audio Files In Flash?

Jan 23, 2009

1. How can we import these mp3 audio files(These audio files are dynamic in nature as user can add or delete these files through login area) in flash?

View 1 Replies

Flash :: Audio - Using One Sound Channel To Play Through An Array Of Sounds

May 26, 2011

I Am wondering if is possible to use one sound channel to play through an array of sounds? Perhaps by using a complete event or other means?

View 1 Replies

ActionScript 2.0 :: Sound Flash - When The Audio Finishes It Goes To The Next Frame Automatically

Jan 28, 2010

I am trying to make a webinar in flash, I have frames and in those frames I need to insert audio and when the audio finishes it goes to the next frame automatically. but I also have a menu bar and when I click on a button to take me to a frame i get a whole load of audio going on. I just need it to go to that frame and play the audio Just want to be able to have it play though, when the audio finishes it goes to the next frame or if i click a button on the menu it takes me to the frame i need,

View 1 Replies

ActionScript 2.0 :: Make An Audio Spectrum Analyzer Using Only Flash For Any Sound?

Jun 15, 2003

how can i make an audio spectrum analyzer using only flash for any sound!

View 3 Replies

Flash :: Merge Two Flv Files (contain Audio) In PHP Without External Program?

Nov 1, 2010

I need to merge two flv files, using PHP. I can't use exec method. I am wondering if is possible to cut some part of one flv file (audio tag) and paste to another and overwrite duration for output file. [URL]..file-length-using-pure-php but I do not know how can I get an audio tag from a flv file? How many audio tags a flv file has? Which tags should I overwrite in output file to be able to play audio from two merged files?

View 1 Replies

Playing Local Audio Files With Flash And/or HTML5

Jul 9, 2011

I realize it is possible to play audio with Flash and HTML5 by passing a URL.

However, is it possible to get a reference to an audio file using a file browser (either with HTML5 or Flash), to then play this local file, again using either Flash or HTML5?

Of course, this should happen without the interference of a server. Since the file is already on the local system, it does not make sense to route it through a server only to receive the same file again.

View 1 Replies

Flash :: Multiple Audio To NetStream?

Sep 9, 2011

I am working on a video conferance projectthere will be a lecturer and an interpreter.interpreter will write the translated text simultaneously.what I am trying to is add vocal translation but I also want to keep the original audio is it possible to attach multiple audio to netStream or do I have to create another netStream for 2nd audio??

View 1 Replies







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