Actionscript 3 :: Stopping Sounds Without Stopping Bgm?

Dec 25, 2011

flash pro. as 3.0.animation . almost no codes except ends of scenes having :

import flash.media.SoundMixer;
if(SoundMixer.areSoundsInaccessible() == false)
{
SoundMixer.stopAll();
}

[Code]...

i got this scene, with this specific bgm , individual frame layer. and the sounds at another layer. what i want is to stop the sound without stopping the bgm . (yes, i know the above code wouldn't work as it stops all sounds)

View 1 Replies


Similar Posts:


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 3.0 :: Stopping All Sounds In Splash Page

Jun 20, 2009

I just want to stop all the sounds in the splash page. I don't need to give the user the option to start them again. The thing is only 20 seconds long. I just want them to be able to turn off all sounds for their convenience. I found this piece of code:
ActionScript Code:
import flash.media.SoundMixer;
SoundMixer.stopAll();
But how do I write the function/method?

View 1 Replies

ActionScript 2.0 :: Starting And Stopping Sounds With One Button

Aug 17, 2010

I want to play my songs in my Flash site..

I tried Making the song title as a button, and then I figured out how to make the song play by releasing the mouse button. This works great, however, when I click on the button numerous times, the song starts playing numerous times..

What I would like is to be able to click on my Song_btn once to start the song, and then click again on the Song.btn to stop the song.

or another option is to start the song with the Song_btn, and then some way to just let that song play through.

I have used the "stop all sounds" command when you navigate away from that songs particular page..

View 9 Replies

ActionScript 3.0 :: Stopping Movie Sounds During Website Navigation

Aug 1, 2009

I have a Flash site I'm developing which has a section with various flv movies. When I click on the section, the 1st movie starts automatically and plays fine but if I navigate to another area of the website before it finishes, the sound still plays in the background. If I click on a different movie thumb, the sound stops as it should.
 
how to code this in AS 3?
 
I'm learning it right now but still very green and I have no idea of how to make the music stop.

View 10 Replies

Actionscript 3 :: Stopping Some Sounds From Dynamic Classes, And Exclude Some Others

Apr 14, 2010

The sound I wanted to stop or play are separates into background music and button sound effect. I know you could use SoundMixer.stopAll() to stop all sound, and some how exclude the bg music, IF everything is written in the same class. But what if the sounds are called from others dynamic classes? How could I target them and exclude the bg Music?

View 2 Replies

ActionScript 3.0 :: Muting Or Stopping Time Line Sounds Of A MovieClip?

Jul 30, 2010

I'm doing a project that has a lot of time line animation.There are 5 buttons. Each one plays a multi-frame MovieClip containing sounds embedded in its timeline.Then there is a button that stops any of the playing movie clips. Of course, this doesn't stop the soundsormally, I'd just use...ActionScript Code:SoundMixer.SoundTransform.stopAll();Problem is, I also have non-timeline sounds that I have playing on a loop for background music, and the SoundMixer would stop the music too. But I don't want the music to stop.Doing some research, I think any MovieClip can have a SoundTransform property you can adjust, so I should be able to control the sounds just inside specific MovieClips. But I can't figure it out.

View 1 Replies

ActionScript 3.0 :: Stopping Sounds From Playing In Embedded Video Clip?

Jun 10, 2011

I have three embedded video clips that are inside of movieClips. They I have buttons that take you to a framelabel where those movieClips are located. Each movieClip containing each movie are on separate frames. (See attached image)

When I click on any of the buttons that take me to any videoClips other than the first one, make the audio from the previous embedded Video on the timeline in front of the one I went to , start to play.

I have SoundMixer.stopAll();

on everybutton before I tell it to go anywhere. what to do to only get audio from the video clip in that section of the timeline to play.

View 0 Replies

ActionScript 2.0 :: Drag Throw Scroller - Ease Into Place Stopping And Showing The Second Image Stopping The Image At X Axis 0

Feb 18, 2009

I want it to while still easing into place like the iphone does. For example my stage is 550px. The drag and throw MC is 1650. That's 550x3. If the first image is showing starting at x axis 0 and you drag to the left it will ease into place stopping and showing the second image stopping the image at x axis 0. And the same thing scrolling to the next one and scrolling back. So the code is below and I've attached the movie that I'm working on.

[Code]....

View 8 Replies

Flash - Calling The Function Within That Function And Later Stopping The Loop - Starting And Stopping Functions?

Jan 7, 2012

I am making a character walk. This code will make him wobble to the right and when thats done it will trigger him to wobble to the left and then call the function again to continue the loop.I can get the loop to work fine by calling the function but how do I STOP the function? Also I want to call it later on. Is there a way to start and stop a function?

function wobble()
{
var ws = .1;
var dis = 1;

[code]....

View 2 Replies

Flash8 :: Stopping The Map At Impact

May 10, 2009

Basicly its simply a world map with a character in the middle. You move around with the arrow keyes (in reality you move the map around and the character stays in the middle) and at certain impact you walk into houses etc etc. To accomplish this i have a movie clip in the middle named "man" and a map movie clip beneath it with the following code:

[Code]...

So far so good and no problems. This is what i need help with: I can't seem to get the "main" map to stop moving at certain points when it impacts the "man". In essence there are lakes and mountains that the character cannot cross when when he hits these i want the speed X to be 0 so to say. Im uploading my example here. It's when the movieclip in the root named "man" hits the purple line in the map movieclip its speed should go 0. Ive tried around with hittests (the code is still in the code) but i can't get it to work.

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

Frame Stopping One From Too Late?

Dec 28, 2009

I have a simple flash movie that contains multiple frames which make up the sections of a simple site. I have built the navigation so that when you click a button, the movie advances to the proper frame/section. So far so good.My problem is that when I get to the FAQ section of the site, the movie clip that makes up the faq answers plays to the second frame, not the first. The first frame of the movie clip has a stop action in the actionscript, as does the second. But no matter what I do, any time it loads, it quickly plays to Frame 2. I do have buttons that play different frames of this movie clip, but they are attached to mouse over events and nothing else.

View 2 Replies

Swf In Flv Not Stopping, Video Keeps Playing?

Jun 4, 2010

I'm making a basic flash website, and have already created the site structure, but I'm having trouble adding FLV and SWF, as they aren't responding as I would like.

1) I have built a basic flash photo gallery, and it works great. I have exported the SWF, but when I add that to my main sites keyframe, it plays non stop, and the buttons on that embedded SWF don't work.

2) After adding a FLV video to a keyframe, it works as I would like. Except that when I click to another keyframe after starting the video, it keeps playing. How would I be able to pause/stop the video if a navigation button to other keyframes are clicked.

View 1 Replies

Stopping A Flv Using A Conditional Statement?

May 26, 2009

I have FLV files that continue playing when I leave the frame that they are on. I can stop the playing FLV by putting this code on the following frame:
 
if (demo.playing) {  demo.stop();}
 
Where .demo is the name of the instance of the .flv component.
 
Here is the problem - I have many frames with many flvs, and when I tell flash to stop multiple FLVs, for instance:

if (demo.playing) {  demo.stop();}
if (demo2.playing) {  demo2.stop();}

I get this error: TypeError: Error #1009: Cannot access a property or method of a null object reference
 
As far as I know, flash is telling me that since the instance of "demo2" has not started playing yet (ex. the user only went to the page with the "demo" flv, but not the "demo2" flv yet) that flash has no idea what demo2 is yet. I thought using a conditional statement would remedy this, but I suppose the .swf can't stop playing something it does not yet know exists.

Is there any way I can introduce all of the flv's at the beginning of the file, yet not have them play and not have flash "forget" about them so that I can stop them using the code above? Or is there a way to have the conditional statement not error in the event that the referenced instance has not yet been "introduced"?

I really wish they would have added an "exit frame" command in AS 3.0...

View 1 Replies

Starting And Stopping Video And MP3

Aug 5, 2009

I can't seem to get around my video and audio files starting when I arrive at the page. I'm even using some example code with start and stop buttons. This is in CS4 Flash. I expect it's because the ActionScript is in the wrong place because when I run the movie it flashes through all of the pages on the site without stopping at the home page. Is there some generic code that will allow me to simply swap out the name of the video or audio file I want to start. If there is, do I need to locate it on its own layer at the top of the timeline?

View 6 Replies

CuePoint Is Stopping Playback?

Nov 5, 2009

I've encoded an flv with cuepoints. When I play the video, it freezes at the cuepoint. I'm useing as3 on windows 7. I've removed the metaData callback from the code below as the problem occurs with and without the callback.

nc = new NetConnection();nc.connect (null);ns = new NetStream(nc);
vid = new Video();vid.attachNetStream(ns);ns.play('names1680.flv');

View 1 Replies

ActionScript 3.0 :: Stopping A URLloader?

Mar 26, 2010

I'm building a portfolio website and I'm using URLloaders to load new content.I want the user to be able to change the content they're loading before it completes. aka, stop the current load and load something else.
 
Adobe Actionscript 3.0 reference says I can use the following:"Use the unload() method to remove movies or images loaded  with this       method, or to cancel a load operation that is in progress."
 
Here's what I have (my attempt to stop the loader is in bold):
 
button_btn.addEventListener(MouseEvent.CLICK, newPage);
function newPage(e:MouseEvent):void {    loaderState=true;    newDescription();
if (loading){

[code]....

I'm getting the following error on loader.unload(req);  :  "1137: Incorrect number of arguments. Expected no more than 0."I've also tried just using loader.unload(); but it doesn't work - the url loader just continues to load and doesn't load the new content.

View 5 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 3.0 :: Stopping An Flv Movie?

May 21, 2010

I need to stop an flv movie when I click a button that is not on the control bar. e.g. I have three pages in flash and when I navigate from the videos page after starting the playback of the movie, the audio from the movie continues to play. I have no idea why this is.

View 5 Replies

ActionScript 3.0 :: Stopping External SWF??

May 26, 2010

I am having a problem manipulating a loaded swf. I would like it to load, play once and not continue until told to. have looked around the web and have gotten confused.I have been using a loader, but I have read that to controll a time line you need a movieclip(?)so I had created an empty mc, and placed the loader with the swf in the mc.

View 3 Replies

ActionScript 3.0 :: Why Is Timer Not Stopping

Aug 25, 2010

Here's my code:

var TIMER_DELAY:Timer = new Timer(3000, 1); // 8 second delay
TIMER_DELAY.addEventListener(TimerEvent.TIMER, EXMove);
function EXMove(event:TimerEvent):void

[code]......

View 5 Replies

ActionScript 3.0 :: Stopping .flv When Navigating?

Oct 5, 2010

I'm trying to teach myself actionscript 3 and going insane over an issue with an .flv video that I can't stop.
 
The problem I'm having is that I can't make video (an .flv within the "FLVPlayback" component set as a movie clip) stop when navigating to another tab. Navigating away from and back to my video page/frame even results in 2 audio streams playing simultaneously. I think the problem lies with me not being able (or knowing how) to identify the video/movie clip with "(name)".stop();

Here's the source file (the first and last navigation tabs on the left are complete, video is on the last tab) SOURCE:
 
[URL]
 
and my code (all my references to the FLVPlayer/video were wrong so I've removed them to try again) -

[Code]....

View 7 Replies

Professional :: Video.swf Not Stopping?

Mar 22, 2011

In my website design. I have a swf video that doesn't stop when i go to another page in my website. How can I fix this?

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

Stopping A .swf By Clicking Anywhere Outside Of Movie

Apr 19, 2010

So I am having a problem on my HTML page. I have a flash (.swf) video player that is controlled by AS 3 and the problem I am having is that I need the video player to stop whatever its playing when the user clicks anywhere on the screen.

View 1 Replies

Flash :: CS5 Not Stopping At Breakpoints

Apr 28, 2011

This problem has been bothering me for four days now with no glimpse of a solution. All of a sudden when I'm working on Flash CS5 it stopped stopping at breakpoints I set when I'm debugging.[code]...

View 1 Replies

Actionscript 3 :: Stopping At A Cue Point?

Mar 30, 2012

I have an flv vid and set the cue point dynamically.vid.addASCuePoint(1, "cuePoint1");

How ever it does not always stop in the same place. How can I be more exact? I take this is due to buffering and a few other factors?

import fl.video.*;
//etc etc
vid.addEventListener(fl.video.VideoEvent.READY, flvPlayback_ready);
vid.addEventListener(MetadataEvent.CUE_POINT, flvPlayback_cuePoint);

[Code]...

View 2 Replies

ActionScript 3.0 :: Stopping FLV Upon Navigation

Feb 9, 2009

I have an FLV file and when I navigate away from it the audio continues to play. The instance name of the FLV is "reel" From other forums I've read that I need use: reel.stop(); however I think my case is different as the buttons to navigate away are all contained within movie clips. Here is the code I am using on my buttons.

[Code]...

View 2 Replies

ActionScript 3.0 :: Stopping A Loaded Swf?

Oct 2, 2009

I really need help on this. I have an As3 swf that loads an AS2 swf but when user clicks and button it should the AS3 movies should unload the as2 movie and stop all the sounds and scripts running in AS2 movie.

I am loading the AS2 swf in a loader and then simply removing the loader from the display list to stop AS2 actions and sound. BUt this is not working and even after removing the AS2 movie from display list it still keeps playing in the background.

View 2 Replies







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