ActionScript 2.0 :: Control Streaming Sound Object?
Feb 25, 2004Is it possible to control streaming sound object?
View 1 RepliesIs it possible to control streaming sound object?
View 1 RepliesI'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 RepliesI 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 RepliesI have been at this for about 19 hours straight! I am going to go to bed immediately after this post, but for crying out loud, I have NEVER had this problem before today! Before anyone reads ahead and says 'you have to attach your sound object to a completely separate mc to be able to control it independently from all other sound/root volumes.' see if the following code accomplishes just that:
[Code]...
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 RepliesI need to make the object visible when the external mp3 reaches 8.2 seconds, what Iļæ½m doing wrong...?
ActionScript Code:
my_sound.loadSound("audio/sound_1.mp3", true);
var my_sound:Sound = new Sound();
[code].....
We need to call different instances of youTube Video into our own swf and play them.
Now as youTube video is from a different domain, the Flash sandbox restrictions naturally come into play. We am loading the youTube swf into a clip using the MovieClipLoader Class.
If we remove the instance using the removeMovieClip() command the video is removed but the sound continues. We have even tried the MovieClipLoader unloadClip() method but that too did not yield results.
We wish to be able to kill the sound object or atleast mute it so that it does not play even after the movie clip containing the video is removed.
As the swf belongs to a different domain we are unable to control the sound object directly through script.
We have even tried loading another youTube instance into the same movie clip after first removing it using the removeMovieClip() command, then creating it again, and finally loading the youTube instance using the MovieClipLoader class, but the earlier sound still continues to play even while the second clip sound also plays.
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 Repliesim trying to make a music/sound control and FX sounds control,so i have my FX volume level as a variable(FX_vol) and also the Music/sound volume level as a diffrent variable(M_vol),so i set them as sounds that i can use trough coding:
[Code]...
How to import sound with AS? Cuz i have tried it and my sound just wount play. Can you explain me where my sound should be and what is the as code for importing cuz i use
mysound = new Sound();
mysound.attachSound("SoundOn");
mysound.start();
and this SoundON from where i get it, i try to add linkage to the sound file but in CS4 i cant find the option;. I do it from the library, adding text into the linkage field but still my sound doesn't want to play?
I want to incorporate sound into my main movie but I also want to be able to turn the sound off and on.
View 1 RepliesI 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]....
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]......
I am trying to write an mp3 player. I have tried everything and am suck getting the duration of an mp3.[code]...
View 1 RepliesI am trying to embed some sound controls, and have hit a dead end. I made my play and stop buttons, imported my mp3,, assigned it proper linkage, and inserted this AS2 :
[Code]...
The buttons are named "play_btn" and "stop_btn" respectively. When I export it or preview it, hitting the play button does not do anything.... I hear no sound. What could be up with this?
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 RepliesSo 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]...
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??
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.
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.
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 RepliesI 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?
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?
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]....
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.
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]....
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?
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 RepliesI'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.
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].....