Actionscript 3.0 :: Stop The Audio Playing From A Video When You Navigate Somewhere Else?
Apr 11, 2010
how to stop the audio playing from a video when you navigate somewhere else. However none of these solutions seem to work for me.I have my buttons on the root timeline, and all my pages are seperate movie clips which are added to the timeline with labels. I tried the
Code: Select allimport flash.media.SoundMixer;
SoundMixer.stopAll();
but i also have audio streaming on the whole site so when i navigate to a page the audio stops.
View 2 Replies
Similar Posts:
Jan 17, 2010
I am trying to create a little website in flash.. I have some video that plays automatically once the user goes to that section (I am using frame labels to navigate from section to section of the site). But, when the user clicks another button to go to a different page, the video is still playing because I hear it..How can I stop the video from playing once another button gets clicked?
View 20 Replies
Jun 2, 2010
I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.
View 3 Replies
Jul 8, 2008
I'm trying to build a simple portfolio website, which displays images and videos. I imported a video, and got it to play when a certain button is pressed. But when I press another button (to go look at an image, for example) the video's audio keeps playing. How do I make the audio stop whenever another button is pressed?
View 2 Replies
Jan 19, 2009
I want to stop my background music(audio) from playing when i click on a button which loads video[code]...
View 0 Replies
May 3, 2011
I'm having the problem that my video, which sits in a movie clip, does not stop the audio after moving to the next frame, even though the video instance is removed. Here is the code from the main timeline:
import flash.events.MouseEvent;
next1_btn.addEventListener(MouseEvent.CLICK, ongoPage2);
function ongoPage2(Event:MouseEvent):void {[code]....
View 4 Replies
Nov 21, 2010
In my main swf file i load external swf files for each section.. In my video section i load a swf that includes a flv player that plays flv's with sound!
when i go back to menu...or go to another section....sound is still playing! why? I was thinking maybe i need to add a stop all sounds actionscript when going back to menu?
View 5 Replies
Dec 7, 2011
at the moment i have tried using booleans but this is making my code have many errors so i was wondering if there was another easier way?
View 1 Replies
Dec 15, 2009
I have recently created my own flash site and have added videos on it through creating my buttons. The videos are working fine, however when I click to another page the video is still playing. I'm really pulling my hair out over how to get the video to stop every time I naviagte around my site.
View 2 Replies
Aug 3, 2009
I made a simple audio player following a tutorial on Youtube. It seems pretty good, except that the tutorial just starts and stops the sound file. I need it to be playing and for it to pause and resume.As it stands now, the music does play, but the pause button does nothing.Here is the script:
Code:
var loadSnd:URLRequest = new URLRequest("http://jeffreyworthington.com/intro_music.mp3");
var thisSnd:Sound = new Sound();
[code].....
View 6 Replies
Feb 25, 2010
I am new to Flash action script and i have problem with action script code. Even though i comment the mvMyVid.play(); still the audio plays for fraction of second and stops.[code]...
View 1 Replies
Nov 17, 2010
I have a swf loading in another swf that has a video player in it. When I remove the swf from the stage, the swf goes away but the audio from the swf keeps playing. Is there a way to tell that swf to stop playing from the parent swf?
View 7 Replies
Jun 27, 2011
I have a section of a site that has a voice over when you get to a page. I have a play/pause button that works fine, and plays and pauses the audio voice over. I have about 9 other buttons on this page that all have 'SoundMixer.stopAll();' in order to stop the embedded audio. This works the first time you click a button, but any button after that restarts the embedded audio.
Is there a way to make it so that Flash knows not to restart the embedded audio?
Do I need to make a sound variable and set it to 'false'. I am not sure what to do, or how to do it.
View 8 Replies
Jun 20, 2010
I'm by no means up on my AS at all and this MP3 player I've had for a while and just readjusted to suit my needs.
One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.[code]...
View 5 Replies
Nov 25, 2011
For a class project I have to make kinetic typography and so I need text to go along with some audio from a movie (in Flash). Every time I press enter to preview what I've done and what I have to do next, the audio starts and doesn't stop till it's done and this is a little over a minute long, and it's really annoying. If I don't start from the first keyframe, I can't even hear the audio, it doesn't play if I play from the middle. How do I press enter to play and have it stop when I press enter again? I can load the swf by CTRL+ENTER but then I can't see what frame I'm on and what frame I want. :|
View 4 Replies
Jun 19, 2010
I'm by no means up on my AS at all and this MP3 player i've had for a while and just readjusted to suit my needs.
One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.
Code:
stop();
playlist = new XML();
playlist.ignoreWhite = true;
[Code].....
View 3 Replies
Aug 2, 2009
My dillema is that on my site when you load a video on one page then click on another page the audio keeps playing. I've had a look around other topics but nothing seems to work for me. I've put in things like videosname.stop() with no success.
View 25 Replies
Jan 12, 2010
when a video is playing..and i click a button to play to a different label in the main time line..the video component disappears but the audio keeps playing.. all so the volume component, the slider indicator stays stuck to the stage.. what AS3 is needed..to stop the audio and fix the indicator..
View 5 Replies
Nov 8, 2010
I'm trying to load a movieclip that has some video running on it using a page container dynamically on the click of a button. however im not able to get the audio from pausing even when this page has been navigated to another. The video gets hidden behind the newly called page however the audio still continues to play on the called pagethis is the code i wrote to add the movieclip(page) to the container..
var gp1:gpage1=new gpage1;
menu_cont.media_menu.press_review.addEventListener(MouseEvent.CLICK,mediaclik3);
function mediaclik3(event:MouseEvent ):void {
[code]....
View 1 Replies
May 17, 2010
We are using FMS3.5 for VOD streaming. It's spotted that when we are using Flash Player Version = WIN 10.0.42.34/10,0,45,2, it is encountered that the video picture is hang but audio keeps playing after our commercial break point. we will first pause the video content and then use the same object to play the instream ad. After that, the video is resume when instream ad complete.
View 1 Replies
May 6, 2010
Is it possible to capture video playing on your own flash site using netstream? I mean instead of capturing from a camera object. Capture video of something playing on your own site.
View 0 Replies
Jul 6, 2009
I have a video on my site (progressive download, flv file, imported using flash cs3 video encoder) and I used the FLVPlayback component with a simple skin. The video works great, my only problem is that I want the sound to stop when I click on other buttons on the page. The way I designed the site (maybe not a great set up) everything is in one big swf file, so when you click on another button on the page to show another project, the sound from the video file (that is no longer showing) is still playing.URL...
View 10 Replies
Sep 12, 2010
I have this sample code from the e-book: "Learning Flash Media Server 3". The purpose of the code is to create a FLV. The code is not running as it should. When I click on the 'record' button, the label is to change to 'recording', that dosen't seem to happen and also when I click on the 'Stop Record' button, I get the following error:
"TypeError: Error #1009: Cannot access a property or method of a null object reference.at MinRecord/stopRecord()"
[Code]....
My deduction is that the 'if' statement in the 'startRecord' function is not resolving to 'true' and hence the label is not changing to 'Recording'. Also I feel that the assingment to the variable 'ns' of type NetStream is not being done and hence in the function 'stopRecord' I get the above mentioned error message when I click on the stop button. How do I rectify these problems?
View 3 Replies
Aug 3, 2011
I am curious if there is a way to call back to the main timeline using AS3 after a video clip or audio clip that is being loaded externally, is done playing? For instance: you get to a page with a video on it, but when the video is done playing, instead of just sitting there, it automatically takes you to a new page (framelabel).
View 9 Replies
Jul 27, 2009
I have a video component play on frame 1. When my movie goes to frame 2, the audio continues to play even though the video component is no longer on the stage.
View 14 Replies
May 28, 2009
I've inserted a flv video ( from Import to stage) on the 1st fotogram( my homepage), and then I've extended it for 24 fotograms( because I set at the beginning 1 second = 25fps).If I play the video (with the play button of the "flash prebuilt player") without stop it and I'll surf toward another page the sound still playing, how can I fix? I mean I'm in the homepage, I start the video with the play button on the "flash prebuilt player" and if I don't stop the video and I surf towards another page the video disappear but the audio is still playing on the background. Which command ? I've try with stopAllSound(); on the fotogram 25 but it doesn't work and the audio is still playing.
View 1 Replies
Aug 5, 2009
The situation is I have a number of pages with a single movie clip on each, however once the movie is playing and you click the home or contact buttons for example, it will go to the correct page but the movies sound keep playing in the background. So I've got a code, but I just get an error sayign tanmovstop() does not have a body. I'm very new to action script so am very lost! I'll be extremely grateful. The code on the sites main buttons is as follows, with tanmov being the movie whos sound I want to stop:
[Code]....
View 1 Replies
Dec 8, 2009
i have a simple website i'm building. 4 sections/nav buttons. on the main homepage a video automatically starts playing, but when you click on another nav button which takes you to another frame in the site that displays another section - the video from the first homepage section is still playing.here's the code i'm using on the buttons that go from one section to the next:
Quote:
home.addEventListener(MouseEvent.MOUSE_DOWN, homeNav);
function homeNav(event:MouseEvent):void {
gotoAndPlay("home");
}
[code]....
what do i need to do so that the video stops playing when you go to another section from the homepage/section?
View 5 Replies
Dec 8, 2009
I've just posted a reply in the ActionScript3 Forum as someone else has had the same problem, but I can't find a solution so posting again here as it's taken me about 5 hours of getting nowhere and I'm sure this is really easy... have one frame on my time line called "theatre" and another called "Video" the buttons between the two work but the video continues to play in the background when I go back to the "theatre" frame on the same time line and I can't find a stop function that will work A button on my main page links to Video on the timeline with following AS3
btnVid.addEventListener(MouseEvent.CLICK, clickbtnVid);
function clickbtnVid(event:Event) :void {
gotoAndStop("Video");
[code]....
View 2 Replies
May 25, 2009
1) I'm on the portfolio page, and I click a button to load a video.
2) Let's say I change my mind and press "back" button BEFORE the video has a chance to load completely.
3) I am back at the portfolio page. Everything looks okay BUT the video eventually loads. I can't get rid of it if I remain on the portfolio page.
View 7 Replies