ActionScript 3.0 :: Playing Video - Unable To Stop Audio After Moving To The Next Frame?

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


Similar Posts:


ActionScript 3.0 :: Stop Video Playing When Moving To Another Frame?

Mar 13, 2012

I have made a frame which contains four videos that play when the user clicks on the button relating to that video. However, when I click on another frame, the video's sound continues to play. But when I click back to the video page the FLV Componant Player has reset itself and is not playing anything, but I still hear the sound of the video that I played earlier. Any ideas as to either stop or pause the video that is playing when clicking away from that frame?

View 1 Replies

ActionScript 3.0 :: Stop Video Playing When Moving To Next Frame?

Apr 22, 2011

I can hash a flash template to make it work, changing URL's, pictures etc, so have not had a grounding in the coding side of things.

My problem is that I have a new website that I have published in CS5 from a template by flashmo. I have substituted one of the pages to play videos ( I originally wanted to have 1 video with 4 thumbnails that would play when clicked but that is above me). On that page I have imported 4 flash video files, one set to autoplay, the others using the skin to start when necessary.

The issue is that when I navigate away from the page "Examples", the sound keeps on playing and if I navigate back to "Examples" another instance of the video starts with both soundtracks playing.

I have researched and found other people with the same issue, but the solutions always seem to involve entering a stop(); function on the buttons that navigate away from the Examples page. This is where it all falls apart for me.

below is the code from the first frame of the timeline. Am I looking in the wrong place to stop the video playing. There are other lines of script later in the movie, but I am ssuming this is where it all runs from ?!

fm_button.visible = false;
var menu_label:Array = new Array("Home", "Examples", "Packages",
"Links", "About", "Contact");
var total:Number = menu_label.length;

[Code].....

View 0 Replies

Actionscript 3.0 :: Unable To Get Rid Of The Audio Even When Video Stops Playing?

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

ActionScript 3.0 :: Multi Video Player - Audio From The Last Video Remains Playing Even When Prompted To Stop??

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

ActionScript 3.0 :: Video Audio Won't Stop Playing

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

ActionScript 2.0 :: Stop Audio Sound When Video Is Playing?

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

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

ActionScript 3.0 :: Stop A Video From Playing Once Leaving The Frame

Aug 7, 2009

It is for a portfolio for school, in the case that you wanted to know. I have created a frame in the FLT thatis for videos. I have called a net connection to load a video locally when a custom button is CLICKed, and i have made a custom button to pause said video, and play again, using togglePause

My problem is, once the video is started (using play) and if the user navigates away from this video page, (which means they are a jerk/ass for not finishing my video) the audio will continue playing, as the video has been loaded and is not through executing. I want this net connection to end once navigating away from the page, if necessary. I have tried calling an EventListener(EXIT_FRAME) but errors upon outcome follow.

View 0 Replies

ActionScript 3.0 :: Stop Video Playing When Changing Frame/page?

Nov 28, 2011

i have a video that appears when looking at my 'Other' page. But when i click onto a different page i see the new page but can still hear the videos sound. how to stop the video when you leave that page?

View 2 Replies

ActionScript 3.0 :: Playing Audio And Moving Frames In Time?

Sep 14, 2009

What I'm looking to happen is that on frame 2 I want audio track 1 to play and:

after 1 min 45s move to frame 3
after 1 min 51s move to frame 4
after 2 min 47s move to frame 5
after 3 min 15s move to frame 6

How would I code this or what would be the easiest way to do it??

View 6 Replies

ActionScript 3.0 :: Audio Will Not Stop Playing?

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

Make Audio To Stop Playing Soon After Loading?

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

ActionScript 3.0 :: Audio From Flv Player Won't Stop Playing?

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

ActionScript 3.0 :: Stop Embedded Audio From Playing?

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

ActionScript 3.0 :: Flash - Stop Audio From The Last Frame When I Go To The Next Frame?

Jan 29, 2011

I'm working on a Flash CS5 file, with action script 3. I have a layer with all the audio for each frame. When I click the Next button, the audio from the last frame plays over the audio of the current frame. The only code I have in flash is:

stop()
btn2.addEventListener(MouseEvent.CLICK� forward);
function forward(event:MouseEvent) {[code].....

View 3 Replies

ActionScript 2.0 :: Stop Music Playing In Audio Player Automatically?

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

Professional :: Get Flash To Stop Playing Audio When Previewing While Working?

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

ActionScript 2.0 :: Stop Music Playing Audio Player Automatically?

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

Actionscript 3 :: Stop Movie (from Current Frame) Playing When I Click On Next Frame?

Apr 8, 2010

I have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. The code below shows one of the actionscripts for a movie clip and then the main actionscript in the main movie.[code]...

View 1 Replies

ActionScript 3.0 :: Stop The Background Song On Frame 1 And Have Frame 2 Playing?

Aug 7, 2010

I have 5 frames in which a different song will be playing, this is the code i used on each frame:

var mySound:Sound = new Sound();mySound.load(new URLRequest("frameone.mp3"));mySound.play();

If im on frame 1 and click on the navigation button to see frame 2, both songs on these frames play simultaniously. how can i stop the background song on frame 1, and have frame 2 playing?

View 11 Replies

Audio From Video Keeps Playing When Click On New Page

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

ActionScript 3.0 :: FLV Audio Keeps Playing When Navigating To Different Frame / Moveclip

Feb 10, 2010

1. I have a swf contains a FLV paly back component playing a movie .I have used flash cs4 import movie tool to create it. Name of the files are >movie1.swf movie2.swf

2. In the main movie I have a movie clip which loads the movie1.swf and it start playing .Now  user can move from move1 to movie2 by clicking a button

However when I click to view second movie sound of the first movie is still playing .Even if I click to go back to movie1 another sound will be playing and a big mess.[code]...

View 3 Replies

Professional :: Video Component Disappears But The Audio Keeps Playing?

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

ActionScript 2.0 :: Unable To Get It To Load And Stop At A Certain Frame?

May 18, 2002

A quick question for anyone who has patience with this newbie. I'm using Flash MX. I'm trying to load a movie contact.swf from a button. Now I am able to get it to load and stop at a certain frame. What I want to do is be able to hit the same button again and have the contact.swf movie continue it's play which is a fade out.Can this be done? And what might the code look like?

View 6 Replies

Media Server :: The Video Picture Is Hang But Audio Keeps Playing

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

ActionScript 3.0 :: Record Video Playing On Side And Audio From Another Place

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

IDE :: How To Stop Flash Video Audio

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

Professional :: Playing An External Video File And Upon Video Being Played, Move Onto Next Frame?

Dec 16, 2011

I suppose the title says it all.  I can load an external video file (FLV) and I can have it play.  I also have the custom buttons made to control the clip.  The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end.  I am using actionscript 3 and flash cs 5.5. 

View 7 Replies

Media Server :: Recording And Playing Back Streaming Audio And Video?

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







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