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


Similar Posts:


ActionScript 2.0 :: Multiple Streaming Sound 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.As yet, I can't have two sounds playing at once.I have found a site with the effect I want, it's atI 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);

[code]......

View 4 Replies

ActionScript 2.0 :: Multiple Sound Objects Manipulation

Aug 24, 2004

i have a problem manipulating multiple sound objects in MX. i have a main background loop object and a button rollover object (which plays on specific buttons). i then have a volume slider which will set the volume of only the main bg loop object. but when i tested it, it seems that the volume of the button rollover object is also the same with the main bg loop object's volume. meaning, if my main bg loop's volume is down to 50, the button rollover sound volume is also 50.

here're my codes:

//code on 1st frame
mainLoop = new Sound();
mainLoop.attachSound("mainLoop");
mainLoop.start();
mainLoop.onSoundComplete = function(){
mainLoop.start();
}

hoverSound = new Sound();
hoverSound.attachSound("hoverSound");


//code on slider MC
onClipEvent(enterFrame){
if(drag){
_root.mainLoop.setVolume(this._x); //this._x is between 0-100
}
}


//code on sample button
on(rollOver){
hoverSound.start();
}


thanks!

View 3 Replies

ActionScript 2.0 :: Multiple Sound Objects Manipulation?

Aug 24, 2004

i have a problem manipulating multiple sound objects in MX. i have a main background loop object and a button rollover object (which plays on specific buttons). i then have a volume slider which will set the volume of only the main bg loop object. but when i tested it, it seems that the volume of the button rollover object is also the same with the main bg loop object's volume. meaning, if my main bg loop's volume is down to 50, the button rollover sound volume is also 50.

here're my codes:
//code on 1st frame
mainLoop = new Sound();
mainLoop.attachSound("mainLoop");

[code]...

View 3 Replies

Imported Swf Files Have Lost Their Streaming Sound?

Jun 14, 2009

I am trying to import a swf I made that contains streaming sound. When I place it on the time line and press cntr enter my animation plays but with no audio. I see the symbols from the swf and the swf inside my library. When I open the swf file inside my project it is broken down frame by frame with no audio. I can add audio back into my movie clip so I know that movie clips can support streaming audio. But I would rather not have to do this.

I'm very new to flash so I am hoping there is something big that I am missing.In addition to my previous question: I need to embed a lot of objects over and over in this project I am working on. Each object will have controls for play back of itself. Is there some reason I cannot do this?

View 6 Replies

ActionScript 3.0 :: Fading Transition Between Multiple Streaming Flv Files?

Apr 28, 2011

I am currently accomplishing this by switching between two NetStream, NetConnection, VideoPlayer combinations. The problem is that it is considerably cumbersome. Is there a better (easier) way of doing this? I looked into the play2() method, but it doesn't seem to have any way of overlapping the streams to create a seemless fade-in/fade-out.

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

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 :: Audio Manipulation Reading Values In The Sound

Feb 14, 2010

As I've searched a lot and couldn't find it I thought of asking it here. Is there any good package or tutorial on Audio Manipulation? With this I'm not talking about play/stop/volume etc, but more on bitrate/speed manipulation etc. Or reading values in the sound (like an EQ does basically).

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

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

Make A Movie With Multiple Scenes - Streaming Sound And Scenes Sync

Jul 3, 2009

whenever I set my sound to stream and continue to make a movie with multiple scenes. The audio and video get disgustingly out of sync sometimes even off by 30 seconds. I just started an animation its only 10 seconds long with two scenes and the AV is already off by about 5 seconds. Ive worked around this by avoiding scenes altogether but i really don't want to have another 5000 frame scene. I discovered this problem in Flash MX and Im quite annoyed that it still has't been fixed 3 years later!

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

Flash :: Streaming Large Files (streaming Media Server)

Jul 2, 2009

We are streaming a one hour F4V from streaming media server 3.5.2 and for some reason it is seeing our one hour video as being 10 hours long. We have tons of other videos and never ran into this problem in any of the other files. This is the only file that exceeds one hour. This occurs in the default player from the streaming server.

View 1 Replies

Media Server :: Get Sound Level Of Each Clients Who Are Streaming Video And Sound?

Oct 20, 2011

I am using a flash app. I can send and receive streaming data to FMS by using this app, like the chart I attached. [URL] This app uses RTMP to access to FMS. I want to upgrade this app to display sound level of each client. Is it possible by using Actionscript and FMS? If so, which class should I use?

View 3 Replies

ActionScript 2.0 :: Streaming Sound Distorted - Sound Object?

Jun 14, 2004

I have a streaming sound that is loaded into my flash movie (will end up on CD) that is very distorted, it sounds like someone is slowing down the audio, the voice sounds deep and slow

View 1 Replies

How To Loop Streaming Sound/mp3

Apr 30, 2009

I have CS4 but saving doc as CS3 so I hope I am in the right forum. I added a behavior as sound streaming mp3. I want to loop it.. Here is the action code that was generated. How would I change it to looping. I changed the true to false at the end of the code but that didn't work. here it is:

//Load Streaming mp3 behavior if(_global.Behaviors == null)_global.Behaviors = {}; if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {}; if(typeof this.createEmptyMovieClip == 'undefined'){ this._parent.createEmptyMovieClip('BS_figaro',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) ); _global.Behaviors.Sound.figaro = new Sound(this._parent.BS_figaro);

[code]....

View 6 Replies

IDE :: How To Loop Streaming Sound/mp3

Apr 30, 2009

I added a behavior as sound streaming mp3. I want to loop it.. Here is the action code that was generated. How would I change it to looping. I changed the true to false at the end of the code but that didn't work.here it is:

//Load Streaming mp3 behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};

[code]......

View 3 Replies

Get Duration Of A Streaming Sound?

Feb 18, 2010

I am trying to write an mp3 player. I have tried everything and am suck getting the duration of an mp3.[code]...

View 1 Replies

Streaming SWF With Timeline Sound Not Working?

Jun 6, 2008

I'm streaming an external SWF into another movieclip, the external SWF has a timeline animation and sound (voice speech) as well on the timeline, it also has a preloader on it which it's set up that when 30% loaded is completed to start playing the animation.But when I run the main movieclip the streaming of the external SWF works fine for the animation but the sound does not play until the preloader is 100% completed.

View 1 Replies

ActionScript 2.0 :: Pause A Sound While It's Streaming?

Jun 3, 2010

So I've been "doing research" for a couple of days now, found nothing on this subject, and let me get this straight:

Is there no way to pause/resume a sound whilst it's being streamed?

Because loadSound() will start playing it immediately; attachSound() can't stream; and start() will simply not work till it's fully downloaded, or am I missing some essential brain cells here?[code]...

View 2 Replies

ActionScript 3.0 :: Set Streaming Sound To Off Forever?

Apr 18, 2011

I have few movieclip play one after another. For each movieclip, i put the streaming sound inside, and there is a button to turn off sound. I created this coding to turn off the streaming sound and it worked well.

SoundMixer.stopAll(); But, the problem is the new streaming sound will play again when it hit the frame that contain new streaming sound. How to overcome this problem? IS using EnterFrame event the only way to turn off the streaming sound forever??

View 3 Replies

Actionscript 3.0 :: Stop Sound From A Streaming FLV?

Jan 2, 2008

I am having trouble with sounds from a streaming flv continuing to play even after the playhead navigates to a different place in the timeline. I know from looking through forums and Adobe's livedocs that the answer lies with the SoundMixer class, but I just can't seem to get it to work. I am building a site that houses all of the videos for my company, so basically I want the sound from the flv to stop playing when the user navigates away from the frame that contains the flv.

Here is a sample of the particular code I am trying to use to do this:

Code: Select allimport flash.media.SoundMixer;
var sControl:SoundMixer = new SoundMixer();
msfNavHeader_btn.addEventListener(MouseEvent.CLICK, msfHome)

[Code]....

I don't know if there is a way to build a function that stops sounds globally or if I have to target each instance of an FLVPlayback Component.

View 5 Replies

ActionScript 2.0 :: Streaming Load Sound?

Oct 8, 2008

i have a little problem with a streaming load sound. this is the code:

[code]...

i don't understand because if i testing the swf i listen the sound super fastly and with IE6 too. FireFox and IE7 no. i have read that is the bitrate mp3 ... something like 128 kbs 44hz to run corectly but with i can't do the mp3 compression.

View 1 Replies

ActionScript 2.0 :: F5 Pause / Resume Sound While It's Streaming In AS2?

Jun 11, 2010

Is there a way to resume a streaming sound once it's been paused and whilst it's being preloaded in AS2?The issue being that start() won't work till the song is fully downloaded, loadSound() is only called initially and attachSound() can't stream.So first the sound is initiated with loadSound(), then I make it "pause" with stop() and what do I use for resuming? loadSound() with re-initiate it and start() won't work till the sound is fully preloaded, what the hell??Is there any other way of streaming external MP3s in AS2? Will simply switching to AS3 solve this?

View 1 Replies

ActionScript 2.0 :: Sound Object > To Play While Streaming?

Sep 30, 2010

I had a question. So now I am streaming an mo3 file using the sound object (loadSound function) ...So the mp3 is loading (and I have a progress bar showing the percentage loaded) and while it is loading it is being played. Now, when the playhead (the location being played) reaches the end of whatever has been download, it goes to the beginning (repeats). I am looking for a way to make the sound pause once it reaches the end, and then wait until a reasonable amount has been downlaoded, so that it may continue playing again. I hope I was clear.

View 5 Replies

Professional :: External Swf Streaming Mp3 Player No Sound?

May 3, 2011

I am pretty dense about flash, pretty new to the software so bare with me. So on the main .fla i have linked to a button to open the external swf mp3 player. That Mp3 player is streaming a song with the code var req:URLRequest = new URLRequest("mysong.mp3"); snd.load(req);  
 
the mp3 is in a folder which is located in the same place as both the .fla and .swf mp3 player. Streaming the mp3 works when testing the swf. but there is no sound when testing the linked swf mp3 player in the main .fla. It's like the file path messes up but i dont know how to go about fixing it?

View 7 Replies

Flash - Can't Get Second Sound To Load In Streaming .mp3 Player

Nov 14, 2010

I'm struggling with a flash file that I want to play two different sound files when the appropriate buttons are pressed.I've gotten it to the point where it will load without any errors popping up, but instead of playing the second sound when I press the button for that sound, it plays the first sound again. Here's the code:

var sc1:SoundChannel = new SoundChannel();
var s1:Sound = new Sound();
s1.load(new URLRequest("http://www.website.com/wells.mp3"));

[code]....

View 1 Replies







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