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


Similar Posts:


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

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

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

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

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

Android :: APK File - No Sound When Streaming Audio In AIR

Jan 28, 2012

I'm working on an app to stream audio from shoutcast. The streaming goes well on my computer and when debugging it with an Android-configuration. But when I deploy it to an APK-file and run it on a Samsung Galaxy S, the streaming doesn't work.

My code for streaming the audio:
var urlRequest:URLRequest = new URLRequest("http://.../;");
var soundContext:SoundLoaderContext = new SoundLoaderContext(2000, true);
soundChannel = new SoundChannel();
sound = new Sound(urlRequest, soundContext);
soundChannel = sound.play();

I've also tried an addEventListener(Event.COMPLETE), it seems my app doesn't get there when running on a Samsung Galaxy.

View 1 Replies

ActionScript 2.0 :: [CS4] UnloadMovie Not Stopping Sound From Streaming?

Jan 8, 2010

I'm new and I've got a problem I've been trying to fix for a couple days and haven't been able to.I am loading youtube videos in to movie clips with actionscript on a frame:

this.video_mc1.loadMovie ("http://www.youtube.com/v/URL");
this.video_mc2.loadMovie ("http://www.youtube.com/v/URL");
this.video_mc3.loadMovie ("http://www.youtube.com/v/URL");

[code]....

View 2 Replies

ActionScript 3.0 :: Sound.extract() On Streaming Audio?

Sep 8, 2010

I'm picking up Flash and AS3 after working with AS1 a few years back. My first project is a mp3 player that is able to take an mp3 file, a start loop point, and an end loop point to loop the mp3 without any gaps or breaks in the sound.

blog.andre-michelle.com/2010/playback-mp3-loop-gapless

I found this page that got me started, and went off of that code. The resulting player works perfectly except for one fatal flaw. As far as I know, the mp3 file must be fully loaded to be able to use the Sound.extract method on it, this can take a while when the files are 3-4 MB, especially on slow connections. I want to be able to have the audio start playing as soon as the mp3 file begins loading.Is there any way to use the Sound.extract method on a streaming audio file that has not fully loaded yet?

View 6 Replies

ActionScript 3.0 :: Sound Streaming Not Playing From Browser?

Nov 20, 2010

I have a small application to play a stream from an Internet radio broadcast. When I play the .swf locally it has no problem at all, but once I put the swf on the browser, nothing plays. I don't know if is a security issue. The path to the stream file is in another domain of the page I am mounting it, for example, I put my html file on: w w w . myradio.com/index.html and the swf is calling [URL]

View 2 Replies

ActionScript 3.0 :: Sound Streaming Event Trigger?

Apr 18, 2011

I'm streaming an external MP3 (around 3 mb file) with the following method:

ActionScript Code:
import flash.media.Sound;
import flash.media.SoundLoaderContext;
import flash.net.URLRequest;

[Code].....

With that i have no problem, where i am completely lost is the possibility of triggering an event after de 15 seconds (first parameter of SoundLoaderContext) are loaded, ie, adding an event listener or something like that.

View 2 Replies

Actionscript 3.0 :: Sound Streaming And Loading Errors?

May 11, 2009

I created a flash movie that has some words breaking a piece of glass. I have the effect working well but I wanted to add sound. I created the following sound class to play mp3 files:

Code: Select allpackage  ascript
{
import flash.display.Sprite;

[code].....

View 1 Replies

ActionScript 2.0 :: Pause Button For Streaming Sound?

Nov 5, 2003

I am developing a site that features a dynamic gallery for photos and sounds! I successfully made all the elements and have the gallery working perfectly! The thing I want is to add a pause button for the streaming audio.

Is this possible? For non streaming audio I can do the pause button easily by getting the duration of the audio and then stopping it at the current position then playing from there. But with streaming the same technique I used doesn't work.

View 3 Replies

ActionScript 3.0 :: Replay Streaming Sound After It Finishes

Mar 8, 2010

i am using this code to stream sound [code] i want to know how to replay sound after it finished but without streaming it again

View 3 Replies

ActionScript 2.0 :: [FMX] Pause Button For Streaming Sound

Nov 5, 2003

I am developing a site that features a dynamic gallery for photos and sounds! I successfully made all the elements and have the gallery working perfectly! The thing I want is to add a pause button for the streaming audio.

Is this possible? For non streaming audio I can do the pause button easilly by getting the duration of the audio and then stopping it at the current position then playing from there. But with streaming the same technique I used doesn't work.

PS. To see the work on progress visit [URL] It totally dynamic complete with a content management system!

View 3 Replies







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