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


Similar Posts:


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

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 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 :: Pause Button For Many Sound?

May 21, 2010

i am having a problem in creating a plause, play button.The problem now is the button just can pause 1 sound.i have many sound at timeline and it will play 1 by 1.

This is wat i have do at the 1rst but it cant pause all the sound. i try to remove mySound.attachSound("tomato");but it wont work also. the another problem is if i click the play button for 2 times, it will got 2 sound play together.

mySound = new Sound();
mySound.attachSound("sound1");
mySound.start(0,99);

[code]....

View 14 Replies

ActionScript 2.0 :: Pause And Play Sound Button?

Dec 24, 2011

How to add both pause and play sound button in a single button.. on play it shows the image pause and on pause it shows the image play.

View 4 Replies

ActionScript 3.0 :: Sound Only Plays When Clicking On Pause Button

Sep 2, 2009

All my sounds work however, the play button only seems to play my sound when I click on the pause or stop button first! Plus, my stop button acts like a pause button, it doesn't start the song from the beginning once it stops. [code]...

View 3 Replies

Actionscript 3 :: Flash Play/Pause Sound Toggle Button?

Sep 11, 2010

I've googled and googled but got no where or outdated tutorials. Anyone know how to make it so I can toggle audio with buttons using ActionScript 3 on Flash?

View 2 Replies

ActionScript 3.0 :: Auto-load SOUND With One Button Pause/Resume?

Oct 29, 2009

I like what the script below does but I need it to be extended in 2 ways and I can not figure how.this is what I would like this code to do...

1. play (ideally stream) sound automatically on entering the site.(right now the play button must be invoked, and it takes a little time to load.)

2. loop that same sound source

3. instead of stopping the sound I would prefer a pause.so more simply sound plays on entering site and I have ONE button (well 2 but changing visibilities) that control only pause and resume I have looked around quite a bit but can never find what I am looking for it would appear that everyones sound issues are so unique that no one has the exact issue that I do (well I am sure many do but I can't find the thread. ) and here is a link to what I have as of now

Code:
var loadSnd:URLRequest = new URLRequest("ax Mr .l..mp3");
var thisSnd:Sound = new Sound();
thisSnd.load(loadSnd);

[code]....

View 0 Replies

ActionScript 3.0 :: Flash - Add A Play/pause Btn That Will Pause Both Pictures And Sound?

Dec 16, 2010

I have a timeline of 30 frames, each it's own mc (page01_mc, etc.). In each mc I show a picture or two and hear narration.I have a first, prev and next nav on the main timeline. I need to add a play/pause btn that will pause both pictures and sound. I assume I do that in each mc, but do not know where to find the code.Here is what is in each mc now:

var mySound:Sound = new Sound();
mySound.load(new URLRequest("english/Intro01.mp3"));
mySound.play()

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

ActionScript 2.0 :: Create A Pause Button That Will Pause Everything On The Screen Including Movieclips/audio?

Mar 26, 2007

I am trying to create a pause button that will pause everything on the screen including movieclips/audio. Right now I can't figure out how to pause the movieclips.

View 2 Replies

ActionScript 2.0 :: [CS3] Streaming Flv To Trigger Embedded Mp3 On Pause?

Feb 29, 2008

I have a loop (mp3) playing from the instant my index page is loaded. This is to be my web portfolio site and on the third page (loaded by clicking a linkage button), I have some buttons that trigger streaming flv files in an flv playback component. What I want to do is to pause or stop the loop for the duration of each flv, then when the streamed flv is finished, the loop resumes playing. Is there a way to do this? I can do this if the flv files are embedded in the swf, but since these files are streamed, I am kind of at a loss.

View 3 Replies

IDE :: Play / Pause And Return To Beginning - Streaming MP3

Apr 20, 2009

I have just a play and pause button on a website I'm creating for a client that streams one mp3 song. It works great with the code below, but the problem is that when it reaches the end, it doesn't loop back to the beginning. I would like for the user to be able to press the play button at the end to hear the song again, or include another button that rewinds back to the beginning.

Code:
this.createEmptyMovieClip("sound_mc", 10);
music = new Sound(sound_mc);
music.loadSound("[URL]", true);
music.start();
active_button = "play";
[Code] .....

View 1 Replies

Recommend Simple Streaming Music Player With Just Play - Pause And Stop?

Feb 24, 2010

I just need something simple, where there is only pause, play and stop buttons. I usually load the music within the flash movie and play from there, but I would like to build one where if you press play, the music loads and plays streaming on the spot. I have got a couple of more complex streaming style mp3 players but I would like to use a simplified streaming version. Any recommendations or code that I can just add to a button?

View 1 Replies

ActionScript 2.0 :: Pause Sound In FMX?

Jan 12, 2004

I have read i trust that I can find the help I need, as many of the members seem very knowledgeable about flash.my problem pertains to Flash MX and pausing .mp3 files I have loaded externally.

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

ActionScript 3.0 :: How To Use Timer To Pause Sound

Jun 7, 2010

I have a couple of buttons that start and stop sound, and I understand how to use a timer so that I can pause sound also. What I want to do, however, is have a sound play as it enters a particular frame and then stop upon entering another frame. As a means towards getting this to work, I experimented with a button that starts a sound on frame 1 and then a second button which stops it on frame 2. This works great as long as both buttons are present on the frame where the AS is introduced (which seems inconvenient as one has to be placed off screen, but whatever...).

When I switch around the name of the functions called upon by the eventListeners though, so stopSound is on frame 1 and startSound is on frame two, it plays when it gets to frame 2, but won't stop when it goes back to 1. I seem to not be getting the principle somehow, because if the functions are play on 1 and stop on 2, I can go back and forth endlessly. How can the order make such a difference? How can I get around this? How can I design an MC to have a sound associated with it so when the playback goes to the frame it is on, it will play, and then how to stop it later on?

Here's the very simple code I'm working with:
stop();
var soundReq:URLRequest = new URLRequest("TheCattleCall.mp3");
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();
sound.load(soundReq);
[Code] .....

View 1 Replies

ActionScript 3.0 :: Pause Sound In External SWF

Oct 11, 2010

I have created a Flash container movie (mainContainer.swf) that cycles through an array loading in several external swf files (animation1.swf, animation2.swf, animation3.swf, etc.). Once the user clicks the next button, the next swf is loaded, and so on...

What I need to be able to do, is to control the sound of the external swf files from the main container. Specifically, I need to be able to pause and play/resume the sound of the external swfs, but not quite sure how to access the external swf's soundChannel from the main container swf. My client recently wanted to add in a "pause" feature, and while I have been able to pause the external swf's animation, I cannot target the external swf's sound - it just continues playing while external animation is paused.

I can successfully pause/resume the sound (song.mp3) if the soundChannel is defined from within the same swf (using code below); however, I cannot seem to figure out how to communicate between the parent and child swf, if the parent is requesting the pause action, and the child swf is the one that loads in the song.

[Code]...

View 4 Replies

ActionScript 3.0 :: Pause And/or Mute A Sound?

Sep 2, 2008

i'm trying to pause and/or mute a sound, with little success.i've found out that something like 'sound.play(pausePosition)' might fail on sound-clips with low sampling-rate.however when i try to mute a sound with a 48000Khz sampling rate it simply won't work.

i've tried both -

soundChannel.SoundTransform.volume = 0
- and -
SoundMixer.SoundTransform.volume = 0

however both won't mute the sound and when traced return 1.

View 1 Replies

Professional :: How To Pause A Sound Clip

Jul 26, 2010

I have the basics down to create a play and stop button and add the actionscript 3 code to play and stop, and this works good, but I really want to be able to pause the clip and resume from the paused spot.Here is the basics...two layers..."AS3" for the scripts, "Buttons" for the buttons.two buttons named "playbtn" and "stopbtn".One frame for eachIn the Scripts frame, the code is:

var loadSnd:URLRequest = new URLRequest("bim1.mp3");var thisSnd:Sound = new Sound();thisSnd.load(loadSnd);
var sndTrans:SoundChannel = new SoundChannel();

[code].....

View 2 Replies

ActionScript 2.0 :: Looping Sound AFTER Pause?

Jan 15, 2007

sound loops wonderfully when I just let it play. And, my sound would loop perfectly if I set up just start and stop buttons to control it.

But, here's the problem. I want the "stop" button to function as a "pause" button rather than a "stop" button.

[Code]...

So now, it pauses and plays perfectly, the problem is that when it gets to the end of the sound file, it loops back to the last point it was "un-paused" rather than looping back to the beginning of the sound file. Make sense? Has anyone come across this before? How can I get it to loop back to the beginning no matter when it was paused?

View 4 Replies

ActionScript 3.0 :: Pause Sound In External SWF?

Oct 7, 2010

I have created a Flash container that cycles through an array loading in several external swf files. What I need to be able to do, is to control the sound of the external swfs from the main container. I would like to be able to pause and play/resume the sound of the external swfs, but not quite sure how to accomplish this, as I am newly migrating to AS3. Some of the sound is embedded in the external files, while others load it in via AS.

I was able to successfully pause/resume the animation of the external files, but cannot get the sound to pause - it just continues playing while the animation is stopped.

How can I pause and resume the sound of my external swfs from my main container?

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







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