Start & Stop An Mp3 Sound

Jun 28, 2009

I wish to be able to play a voice sound every 3 minutes. I have the sound in "mp3' format and need to repeat the message every 3 minutes.

[Code]...

The actionscript 3.0 I wrote makes the sound once but that's it. I have the "Loop" on but it only runs once. I need a Timer also but until I can get the sound goes its a mute point.

View 26 Replies


Similar Posts:


AC2 :: Stop One Sound And Start Another?

Jun 17, 2009

I am creating an animation with very few controls for a presentation and it requires adding sound. I have my intro in the first frame with one sound and then want the user to click anywhere to start the animation and another sound.The problem I am having is sound control.No matter what I try the sounds overlap. I have managed to stop the first sound when going to the next frame - the animation, but the second sound now will not start. The first sound is called in from the library with the below code:

var snd = new Sound();
snd.attachSound("Tune");
and stopped when going on the next frame with:

[code].....

View 1 Replies

ActionScript 3.0 :: NetStream Choppy - Make A Character Start To Talk When The Sound Starts And Stop Talk When The Sound Stops

Aug 5, 2010

Need to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:

[Code]...

View 2 Replies

ActionScript 2.0 :: Stop One Sound And Start Another?

Mar 5, 2010

I am trying to stop one specific mp3 file that plays throughout the whole document. But I don't want to use the off and on button. Instead when I press one of the pop-up buttons, I want a new sound to start in the pop-up window.

How do you stop the current sound that is playing and start the one on the pop-up? My main question is, is there a code that will stop current mp3, and start a different sound when the pop-up window is activated.

View 5 Replies

Actionscript 2.0 :: Start And Stop Sound?

Apr 13, 2009

How can I start and stop sound by using actionscript 2.0?

View 1 Replies

ActionScript 2.0 :: Start And Stop A Sound?

Dec 27, 2003

In this tutorial [URL] it shows how to start a sound, and I got that down, but using a seperate button, how do you stop the sound? I cant figure that out.

View 2 Replies

ActionScript 3.0 :: Want To Stop And Start A Sound?

Jul 8, 2009

PHP Code:
import flash.external.ExternalInterface;
snd = new Sound();

[code].....

View 1 Replies

ActionScript 3.0 :: Stop And Then Start Sound From A Video?

Jun 1, 2011

I am making a small website and i am trying to stop the sound from a video playing when the user clicks any other button to navigation away from the video which is fine (SoundMixer.StopAll behind the code for each of the buttons) but then if they decide to go back to the video page there is no sound? I tried removing the event listener but i cant get it to work

View 3 Replies

MX To Make Movie With Sound Start And Stop On Rollover?

Oct 18, 2009

im making a flash animation with a background two sets of text an invisible button and a song. im trying to make the the animation start when the mouse rolls over and have it stop and reset to the beginning when it rolls out. on my invisible button (first layer) i have

on (rollOver) {
play();
}

[code].....

View 1 Replies

ActionScript 2.0 :: Start/stop/pause A Sound In External Swf?

Jan 15, 2010

I'va any troubles in controlling sound in an external swf. I need to stop/play/pause it. I've put the sound file on the timeline of the external swf and I want to control it from tha main movie in wich I've load it. the swfs are made using AS2.0

View 2 Replies

ActionScript 3.0 :: One Button For Sound Start & Stop Flash?

Mar 18, 2011

I am trying to create a sound button to start a sound and then stop it when clicked again. I thought it would be easy because there is a code snippet for "click to play/stop sound"
 
I have my sound file in my library.
 
Below is the code that is not working:
 
Instructions:1. Replace [URL]below with the desired URL address of your sound file. Keep the quotation marks ("").*/
 
CYOA2bttn.addEventListener(MouseEvent.CLICK, fl_ClickToPlayStopSound_11);
var fl_SC_11:SoundChannel;
//This variable keeps track of whether you want to play or stop the soundvar fl_ToPlay_11:Boolean = true;
Proxy-Connection: keep-alive Cache-Control: max-age=0 Cp>function

[Code]....

View 7 Replies

ActionScript 3.0 :: Start An Infinite Sound Loop And Stop It After?

Jul 16, 2009

I'm trying to get right. Essentially I want the beeping sound to loop infinitely while there are no pauses in the writing of the text, but I want it to stop once the last loop that was going when a pause in the writing started has finished, and then start up again when the pause ends.Now I could just easily set the loop to stop once a pause starts, but then there is the chance of stopping the loop mid-sample and making the pause sound abrupt, and I don't want that to happen.Now please watch the current swf:And please read my script for better understanding

View 7 Replies

ActionScript 3.0 :: Start/stop Sound On Mouse Click?

Aug 23, 2011

i know this is a problem allread often talked about, but i cant solve it.i want to start and stop a sound with a mouseclick event.the problem seems to be that the click event is never triggered. can anyone see why?

[Code]...

View 3 Replies

Stop The Playing Sound And Start Playing The Button?

Oct 3, 2009

So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;

Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.

View 2 Replies

ActionScript 2.0 :: Start A Sound At X Seconds And Stop At X Seconds?

Jun 10, 2007

I'm trying to figure out how I can make the sound file that I load into Flash start at x seconds and end at x+30 seconds.So basically, I just want a 30 second sample to play starting at a specific time position. Does anyone have any advice on how to do this or have links to somewhere I can read up on it?

View 4 Replies

ActionScript 1/2 :: Using Start Button To Start And Stop The Scene Or Movie?

Nov 19, 2011

Here is the action scrip that I created. Correct it if you can.

Process.visible = false;
Cycles.visible = false;
stop();

[Code]....

View 3 Replies

Actionscript 3 :: HTML: Start Sound Playback From URL Mid-file Without Buffering All Sound Data To That Point?

Nov 21, 2010

I have a long mp3 file hosted on a standard apache server (30 minutes long so far, but I would like it to work with longer sounds too).I'd like to start playback of this audio within at a specified point. When attempting to use Flash Actionscript 3, my basic tests show that ALL the audio from the start to the position I choose is buffered before playback (Sound.bytesLoaded was my friend here). If I start one second in, it takes about 3 seconds to start playback, 30 seconds in, takes about 25 secondsObviously with a really long mp3, like skipping playback to the middle of a 3-hour audiobook, this isn't going to be practical.Here's the ActionScript 3.0 code I'm using:

button.addEventListener(MouseEvent.MOUSE_DOWN, function():void {
var s:Sound = new Sound();
var req:URLRequest = new URLRequest("http://example.com/audio.mp3");

[code].....

View 1 Replies

ActionScript 2.0 :: Random Sound Load And Start Is Speeding Up The Sound?

Dec 16, 2005

I'm trying to load sound dynamically into a clip and then play it randomly. The AS I came up with works great if the sound is embedded and I use the .attachSound() method instead of loadSound(). Now, when I load it dynamically and use the code below, the sound plays very fast and at a higher pitch.

Code:
var crows = new Sound(this);
crows.loadSound("Raven.mp3", false);
crows.setVolume(100);

[Code].....

View 1 Replies

ActionScript 3.0 :: Stop Button Sound But Not Main Background Sound?

Aug 5, 2010

I have a bit of a problem with sound.. I have a main container animation with background sound that's loaded with soundChannel..I also have an externally loaded SWFs with Movie Clip buttons that have a sound ON ROLLOVER on the timeline..after rolling off - I place the:SoundMixer.stopAll();to stop the button from playing the sound once the mouse is rolled off.. However, the problem I'm running into is that it also stops the sound of the main container movie cli

View 1 Replies

ActionScript 3.0 :: Stop Moving MC - Fish To Stop Swimming After Clicked It And Start Swimming After Another Click

Jan 1, 2012

what wrong with the functin 'stopFish' Without this function the fish in the tank swims but when I add it, it doesnt anymore. I just want the fish to stop swimming after I clicked it and start swimming after another click.

View 1 Replies

ActionScript 2.0 :: Sound - Stop Button To Allow The User To Stop Mid Song

Mar 13, 2007

i have programed a play button using:

[Code]...

now i am trying to program the stop button to allow the user to stop mid song....

View 4 Replies

Sound Stop All Sounds Works / Then Sound Starts Again?

Jan 5, 2010

I am using FLASH CS3.I have gone through many posts, seems to be an issue with many people.Still haven't come across a fix.Website made in FLASH. Flash movie loads and sound works great!I have a button with 'StopAllSounds' action script.[code]When I go back to main page... sound starts up again.Is there a way I can stop all sound regardless of where the visitor goes on the website?

View 2 Replies

Stop Sound From Going Into Next Scene While Keeping Button Sound?

Oct 19, 2010

I'm sure this is a common problem, I tried looking around on the forum for a problem like mine but was unable to find anything. I'm using Flash CS3, Actionscript 2.0, and am making a soundboard. I have two scenes, one that's the title screen, of which has a sound file loaded via the timeline, (I think) set to Event and Loop, and a button which takes you to the next scene and makes a short sound when it's pressed. My second scene has background music as well, also set to Event and Loop.

Problem is that when I press the button, the background music keeps playing into the next scene. I tried using putting stopAllSounds onto the button, but that makes the sound of the button stop as well, and I'd really like to keep it. I've been messing with this for days, and I can't figure it out.

View 3 Replies

ActionScript 2.0 :: Play Sound/stop Sound Button?

Feb 13, 2007

i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.

View 13 Replies

Mouse Over Start And Stop?

Aug 20, 2010

i have an ad that when the page loads, it can have 15secs of animation and then stop. the animation can only be started again if the user rolls over the ad but has to stop and go back to the end of the animation if they rolls off the ad.

i know the basics of Flash and the part that's giving me the trouble is the roll off the ad.

View 3 Replies

AS3 :: Click Sound At The Start Of Recording?

Dec 15, 2011

I'm currently recording sound and storing the byte array for playback and subsequent encoding to mp3.

Unfortunately though I am getting a click sound at the very beginning of the recording.

I have attempted a couple of methods to try to eliminate this such as:

recording the first .3 seconds with mic.gain = 0; then setting mic.gain = 50; clearing the byteArray after the first .3 seconds then continuing to write the bytearray (in effect deleting the first .3 seconds of the recording.)

Neither of those methods has stopped the click being added.

how I can prevent the click from being added?

Here is my recording/storing code:

public var mic:Microphone = Microphone.getMicrophone();
public var micSilence:uint;
private var soundBytes:ByteArray = new ByteArray();
private var soundBA:ByteArray = new ByteArray();

[Code].....

View 1 Replies

ActionScript 2.0 :: Start Sound Immediately?

Sep 24, 2004

[URL].. i am following these tuts but evrything is working fine but what i want is that my music should start playing immediately as it is loaded rather then waiting to click button to play...

[Code]...

View 2 Replies

Start / Stop A Scrolling Background?

Mar 18, 2009

Im trying to animate a scrolling background which is simple enough. I dont want the background animation to scroll when the game is first loaded, I only want it to begin scrolling after the play button is clicked.

Ive used stop(); command in the first line of the MovieClip instance that is the back ground.

Some things I have tried

- Coding in flash to scroll the background, add a check to see once the background reached a certain x.position on the stage, it would addChild the same instance, where it originally was located and repeat the scroll process. I couldnt get this work, but would be intersted to see how you guys would approach it.

-Tried using a gotoAndPlay(2); in the movieclip last key frame to repeat the process. This causes the animation to chop up. I tried using this several diffrent ways, I could get it work at one point. But the background would scroll before the button was even clicked, I couldnt figure out a work around.

View 3 Replies

ActionScript 2.0 :: Start/Stop MC In A Tooltip?

Mar 10, 2011

Basically, I followed a tutorialand have a basic tooltip working (actions in layer1, frame1 of maintimeline).

Code:
tooltip._visible = false;
var tipInt;

[code].....

View 3 Replies

ActionScript 3.0 :: Timer Start And Stop ?

May 26, 2009

I have a timer set up like this:
 
[code]...
 
The problem is I cant figure out how to stop it or reset it after it goes to the next frame.

View 9 Replies







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