ActionScript 2.0 :: F8 Stopping A Timeline Sound

Apr 2, 2009

I am creating an e-learning to put into an LMS which has sound files. in order to play in the LMS, the sound file has to be in the timeline of the flash file, and not called through attachSound, or attachAudio. I would like to trigger an event after the end of the sound, so i have made a movie clip, placed the sound in the movie clip, and put the event at the end.whenever i advance, or back up in my file, the sound continues to play. i've tried stopping the sound by:[code]neither of those will stop the sound. The movie will advance, but the sound also continues to play. If I go back to the sound, it restarts, but I will need a way to stop it.

View 3 Replies


Similar Posts:


Actionscript 3 :: Stopping Timeline Sound On A Loaded Swf

Nov 18, 2011

I'm working on a as3 player which loads swf like videos/chapters, inside them I have images and a level where a sound starts to play at frame 1.I'm trying to stopping the sound of the loaded swf when I change it with a previous or later loaded file but nothing seem to work.[code]the timeline sound works without notice the SoundMixer method.

View 2 Replies

Actionscript 3 :: Flash Timeline Sound Not Stopping On Navigate Away?

Dec 16, 2009

I have a Flash piece that has one main timeline that loads different movie clips and different sections of that main timeline.

On those embedded movie clips within the main timeline are sounds attached to the embedded movieclips timelines set to "stream". They have to be on the timeline so they sync up correctly (I can't load the sounds programatically).

I'm having the issue that when I navigate to a new section on the main timeline, the movieclip that was embedded on the timeline I navigated away from goes away, but the sound continues to play. I can't figure out how to get the sound to stop once I've navigated away.

I can't add a stop all sounds because the navigation of the movie is controlled from an external player I don't have control over (basically the external player just calls a gotoAndStop("myFrame") on the movie.)

View 6 Replies

Sound Not Stopping During Testing?

May 23, 2009

I'm using Adobe Flash CS4 on Mac (windows i'm sure i can figure out how to fix it on the mac version)I'm trying to sync some animation to sound, and my sound is all in one big file. I'm wanting to go through frame by frame and tweak it (Yes, it's a frame by frame animation, no tweening here don't ask why, it's just not), anyways, I keep trying to use the "Control -> Play" button to keep playing the sound from the area I'm working on so I don't have to start at the beginning everytime. After I hear the section I want, I want to just push "stop" and everything stop, including the audio. It would stop everything before, but now it's not stopping the audio so it will just keep playing even though I had hit stop.?

View 1 Replies

ActionScript 3.0 :: My Sound Keeps Stopping

Apr 21, 2010

I am trying to get music to play continuously, it works, but everytime you click on a button, the song restarts on the new frame.The sound code is on frame 1, and is loaded from and external file.[code]...

View 17 Replies

ActionScript 1/2 :: Stopping Only One Sound?

Mar 14, 2012

just looking to stop one sound without stopping all sounds with a buton click

View 11 Replies

Sound Not Stopping When Navigating Away

Jan 27, 2009

I have several swf files which are completed screencasts with voice overs, which I need to integrate into a flash application to distribute on CD to new students.

To play the screencasts in my flash file, I'm navigating to a new frame for each one which has a movie clip on it (instance name myscu3 for example). The myscu3 movieclip has about 20 frames of animation to grey out the screen behind, and then a couple of frames with actionscript on them, which 1) first frame shows a loading screen while the screencast swf is loading via a Loader and then navigates to the 2) second frame where the screencast coords are set and addChild is used to show the screencast via the Loader.

All works fine EXCEPT ... if I navigate away from the parent timeline frame where the myscu3 clip is ... the screencast disappears (as it should, as the myscu3 clip isn't on other frames, but if the screencast hasn't finished playing before I navigate away, the sound keeps playing.

how to stop the sound playing, as the loader is in the child movieclip, and the navigation away from the frame containing it is accomplished by clicking on any of the tabs at the side (on the main timeline). Any ideas? Is there actionscript code which will just stop any current sound playing (without stopping the ability to play sound) which I could add into the tabs navigation code?

View 1 Replies

AS3 :: Stopping A Timeline For Set Durations At Various Frames?

Mar 17, 2010

how to stop the root timeline at a given frame using action script 3 in flash CS4

With AS2 I used this kind of script that worked all the time.
 
[Code].....
 
And I called the pause duration from the frame that needed it, etc.

View 2 Replies

ActionScript 3.0 :: Stopping External Swf's With No Timeline?

May 24, 2010

I just released my portfolio at [URL] which consists of a lot of externally loaded swf's (progressive banners). These swf's contains no timeline really, just one keyframe with an imported FLV. I don't have the source files so I need to control these from my Main flash file.
 
As these external swf's are auto-playing, I would like it to be user initiated instead, so the users click on a button and it plays. But commands like "loader.stop()", "gotoAndPlay" etc. doesn't seem to work obviously.

View 7 Replies

ActionScript 2.0 :: Stopping All Sounds On A Timeline?

Nov 12, 2007

Is it possible to stop all sounds that are currently playing in a movie and at the same time stop future sounds that the playhead will encounter on the timeline? Here is the code I'm using on the 'mute' button now:

[Code]...

View 2 Replies

ActionScript 2.0 :: [CS3] Stopping One Single Sound?

Jan 30, 2009

I want to use a button to stop just 1 single sound. (Ill have a background track playing, and a voice over on top, and want a button to stop just the voice.) I was able to get an mc with 2 frames inside with 2 buttons and have this code:

on (release) {
tellTarget ("../sound") {
stopAllSounds();
}
}
on (release) {
nextFrame();
}

That will work but it stops all sounds. Can i stop just the "../sound" portion??

View 2 Replies

ActionScript 3.0 :: Stopping A Sound In A Loaded Swf?

Jan 4, 2010

Is this possible? I've loaded an external swf into my movie - the swf stays on stage but loses focus throughout a users interaction.When it loses focus, I need the sounds within it to stop.It was mentioned that I should cast my swf as a movie clip but when I try I get errors.

View 4 Replies

ActionScript 3.0 :: Stopping A Stream Sound?

Aug 5, 2009

how do we stop a streaming sound?

sound.stop();
or
sound.close();

View 1 Replies

ActionScript 3.0 :: Stopping Sound Without A Button?

Apr 4, 2010

Is it possible to stop a sound playing without a button? I have background music on frame 1 but before I move onto frame 2 I want the sound to stop. I have 5 buttons on frame 1 to lead to different frames but I do not want them to control the sound. I also do not want to use stop all sounds on the next frame as I want sounds to work on those pages. The script below is to start the sound so how do I stop it from continuing onto the next frames when the control buttons are clicked.

View 6 Replies

ActionScript 3.0 :: Stopping A Sound Track

Jun 13, 2010

I am using an addChild() method to place an intro MovieClip into a website. It has a short ten second musical track. I also have a skip intro button on the stage which does a removChild(). I keep trying to write code that will also stop the sound, which continues to play. I tried loading the sound separately and used the channel.stop(); So far nothing is working. It seems like I've been here before.

[Code].....

View 5 Replies

Actionscript 3 :: Stopping The Sound Of A Child Swf?

Oct 10, 2011

The timeline of my child swf, there are layers with specific sound files in them to be in sync with my animation. Now the problem arises when I try to import this swf into my main flash website using a loader and the sound will continuously play everytime the button is clicked in the parent. My question is how do I get the sound to completely clear itself and restart from frame 0 of the child swf upon every click of the button that loads the child into the loader within the parent.

var myLoader:Loader = new Loader();// create a new instance of the Loader class
var project1:URLRequest=new URLRequest("Projects/Q1/Flash_Projects/Greeting_Card/GreetingCard.swf");

[code].....

View 1 Replies

ActionScript 3.0 :: Stopping Sound On Mouse Out?

Feb 12, 2009

I am having a very difficult time stopping the sound when I mouse Out. I originally included the sound directly on the Mouse Over frame in Flash, but it wouldn't stop, so i removed that and wrote the following code:

var snd:sherrin = new sherrin();
var channel:SoundChannel = new SoundChannel();
var Symbol1:SimpleButton = new SimpleButton();

[code]....

I got this to where I get no Output or Compile errors, but the sound still doesn't play.

View 0 Replies

ActionScript 3.0 :: Stopping Sound From Overlapping?

Aug 31, 2009

How can I control sound in flash so that:

1) the music starts when the user clicks on a play button but when they click on the play button again while the music is playing, the music DOESN'T overlap?

2) the music doesn't overlap when going back to the homepage where the music first started playing??

I'm currently using the code below but the music overlaps when I press the play button more than once while the music is playing and when I go back to the page where the music started playing...

Code:
var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var lastPosition:Number = 0; // pause button
mySound.load(new URLRequest("that_tune.mp3"));

[code]....

View 2 Replies

Actionscript 3.0 :: Stopping A Sound Variable?

Mar 21, 2009

How can I stop a sound variable playing? Say I have sound playing on the first frame.

var nar1:Narration1 = new Narration1();
nar1.play(0,0);

I have a button and when it's clicked, I want "nar1" to stop playing, and a new sound to begin. I would imagine this works, but it doesn't:

var nar2:Narration2 = new Narration2();
nextbutton.addEventListener(MouseEvent.CLICK, playnar2);
function playnar2(e:MouseEvent):void{
nar1.stop(0,0);
nar2.play(0,0);
}

Instead, "nar1" keeps going and "nar2" just plays over it. I tried SoundMixer.stopALL, but that just stops all sounds and I don't want that.

View 1 Replies

ActionScript 2.0 :: Stopping Sound Loop?

Oct 19, 2003

In the tutorials, there is a sound loop that you start with a button, The fla didn't have a stop script to add to a second button.

View 4 Replies

ActionScript 2.0 :: Stopping A Currently Playing Sound?

Jun 14, 2007

I am making a kiosk based on another designers layout where I work... I am not going to get in the details, but the work seems sort of an unorthadox way of using flash - anyways...

It is basically an interactive slide show... play, pause, previous slide, next slide...

Each SWF that is loaded in is around 15000 frames in lenght (right under that magical 16000 number) - the audio voice overs are on the time line one after another... so when the slide changes the voice over matches the slide current slide... there are 31 slide JPGs and 31 mp3 files that are divided between 8 SWFs.

The issue I am having is that when you are one the first "SWF" (slides 1-5)... and you move from slide 1 to 2 before the audio is done playing... it will keep playing the audio from slide one and then start the audio from slide to ... so on and so forth until you get to slide 6 - which is a new SWF that is loaded...

I know that I need to use a stop sound script somehow... on the first frame of each of the following slides so that it stops the currently playing sound... if it hasn't already finished...

if you let the presentation go it works fine... but when you move forward and back... the sound gets garbled....

View 8 Replies

ActionScript 3.0 :: Stopping Sound From Video?

Sep 22, 2009

In my website i have some videos. When i import the video.swf to my main swf. everything works fine. But if i navigate away from the video part the video goes away but the sound keeps playing.

I dont want to use the flash.media.SoundMixer.stopAll() function becasue i have a jukebox player that i want to work inbetween. and dotn want it to stop when you navigate the menu. It only stops when you go to Videos.

Here is the code i use:

var image:Loader = new Loader();
addChild(image);
image.x = 95;

[Code]......

What can i put in the news button to make the sound from the video stop.

View 7 Replies

IDE :: Sound Starting And Stopping Across Scenes?

Oct 2, 2007

I've set a music sound to play across three scenes in my movie. However, when the user clicks to enter the fourth scene, I'd like the music to stop. Simple enough.

Here's the problem...the fourth scene contains individual keyframes in the scene where I have separate voice overs for each frame. The user navs forward or backward among the scene's keyframes using arrow buttons for forward and backward. How can I have the voice over stop playing on frame 1 if the user clicks the arrow to go to frame 2 if the frame 1 sound isn't finished playing? Frame 1 plays out until finished, even if the user has clicked to go to frame 2.

Then, on return to the main scene where the general music file played, I'd like it to resume playing upon the user clicking 'return home.'

Incidentally, I set up my sound files to play on a soundtrack timeline.

View 4 Replies

ActionScript 3.0 :: Playing One Sound While Stopping The Others?

Feb 26, 2009

I'm stuck while trying to playing some sound and stopping the others. What I do is : I'm using a linkage to get access to my sound. For example I have 5 linkage sound. I need to play just one specific sound and stop the others. I create a new Sound() and a new SoundChannel() for each one , and put it all in Array. But when I'm trying to stop the others by stopping it's channel, it won't work: The snippet is somewhat like this :

Code:
for(i=0;i<song_.length;i++)
{
if(snd==song_[i].clas)

[Code]....

I have an array of object that have a sound and channel for each one.

View 1 Replies

ActionScript 3.0 :: Playing And Stopping Sound?

Sep 13, 2010

I had been through your post which telss about playing sound using AS3. It was really helpfull. I just wanted to know how we can stop the sound using a Button click event.

View 1 Replies

ActionScript 3.0 :: Flash Stopping A Sound?

Apr 10, 2012

i'm using this a tutorial of republic of code to play sound and it works well for short sounds on there own however i'm trying to stop a song from playing when i click a button but i dont understand how it works. i know i have to use SoundChannel Class but i dont know what this is or how to use it. i use this to play my sounds.

var mySound2:Sound = new BgSong();
mySound2.play();

how would i get this to work using SoundChannel Class im confused.

View 1 Replies

IDE :: AS3 Starting/stopping Mc's On Specific Part Of The Timeline

Feb 23, 2009

I need to create a tall background, when the user clicks on a button the background will scroll up and down to the area that the user wants to go to. ( I attach an image of how that might look like)

The background is divided in to 4 sections, the way i figure to do this, is to have each section be a different part of the timeline- and what I need to happen is as the user arrives at one of the sections or in that part of the timeline the mc's on that sections start playing and stoping once he/she leaves.

If there is a better way of doing this as well- feel free of telling me- Im use flash about once a year.

View 2 Replies

IDE :: Loop To Keep Playing Regardless Of The Timeline Stopping And Starting

Apr 29, 2009

i just want my loop to keep playing regardless of the timeline stopping and starting. is this possible?

View 1 Replies

ActionScript 2.0 :: Global - Attach A Sound To The Main Timeline (rollover Sound)

Jun 28, 2004

I want to attach a sound to the main timeline (rollover sound) that i can call from on(rollover) button events. I will be attaching the same sound to several buttons.

View 1 Replies

ActionScript 3.0 :: Stopping Sound File From Repeating

Mar 12, 2010

I have added two consecutive streaming audio tracks (mp3) to the timeline of a child SWF. The child SWF loads onto a parent SWF using a loader. After loading the child SWF the movieclip and audio plays without a problem. I have a problem with stopping the audio. After the child is unloaded and the playhead reset in the parent SWF the first audio track from the child SWF begins to play again (but not the one right after it). I have been trying to use the SoundMixer.stopAll(); command to stop the audio. I have not been successful in preventing the audio from playing. I now see that the command only works after the audio begins playing. Is there a better way to control streaming audio embedded in the timeline? I need to prevent it from playing again.

View 3 Replies







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