ActionScript 2.0 :: Stop A Video BTN
Oct 15, 2006
I'm using a video object and I want to make a stop button, yet pressing stop while the video is paused, will make it play.[code]I need to put an if function before the my_ns. pause (run_url); that asks if the movie is played or not.
View 1 Replies
Similar Posts:
May 7, 2011
I have a website that plays video1 when it opens. When you navigate to next page the video stops. One of the buttons on the second page plays video2. The problem is that video 2 won't stop using the same command that made video1 stop.
View 2 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
May 11, 2010
I know how to make a video (instanced as showreel) stop when clicking on a button that that navigates to another section/frame, since otherwise I would still listen to that video while not visible. The problem is when I'm in another frame that doesn't have that video, when clicking on the menu to go to whichever other frame, it looks for that it to stop if it's playing and it and doesn't find it, and so there's an error.
How can solve this? Maybe I should put an order saying something like if there exists a video in that frame instanced as sowreel, stop it, otherwise don't do anything as there is nothing to be stopped. Or assign the order to the frame (which is called motion), but I don't know how to do that, can someone help? The code I have is:
import fl.video.VideoEvent;
function onClick(evt:MouseEvent):void { if( showreel.playing ){ showreel.stop();} gotoAndStop(evt.currentTarget.name);}
motion.addEventListener(MouseEvent.CLICK, onClick);web.addEventListener(MouseEvent.CLICK, onClick);logo.addEventListener(MouseEvent.CLICK, onClick);photo.addEventListener(MouseEvent.CLICK, onClick);
View 5 Replies
Dec 7, 2009
I have created my first flash video and wish to allow the visitors to play the movie themselves instead of having the movie play automatically also have a stop or pause button too.
View 2 Replies
Jan 11, 2012
I am developing the video player with custom video controls and I want to stop the video buffering when my video is paused. As sson as I play the video the buffering starts from the last bufferring point.
View 8 Replies
Aug 24, 2009
I am working on a website using the [URL] tutorial for Flash CS4.
I ran into a bit of a problem, I made my flash movie and everything was good. I added a welcome video with sound that plays when the user opens the website, my only problem is that when you click on the other pages the video and sound keep playing even if you see the other page.
How do I get that video with sound to stop once you go away fro the page and go to another page?
View 3 Replies
Feb 12, 2009
I have a flash header built that contains a embedded video how can i stop the embedded video but not the rest of the movie?
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
Mar 10, 2010
I am dynamically playing a video.flv file on the stage when a button is clicked. It plays fine but continuously repeats itself. I want it to play once and the disappear.
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
Sep 18, 2009
i have a problem that i've already see that is pretty usual, the videoplayer that i have works fine but when i click in a button to go to another page the videoplayer doesn't stop,the audio continues playing even when i'm not on the videoplayer page.I've already found some solutions in the web but none of them worked,probably because i didn't put them in the right place
The code is a little long:
// ###############################// ############# CONSTANTS// ###############################
[code]........
View 7 Replies
Apr 12, 2011
I want the video not to loop, but to stop on the final frame of the video. I want to add that action before publishing the SWFas3 file. I need a litle advice. I went to last frame and right-clicked on Actions. I don't know what to put in the dialog box.
View 2 Replies
Jun 12, 2011
I'm comfortable with PHP and Javascript but this is the first time I'm using flash. I have Flash CS5.
I've managed to import a movie file, however, as soon as it's downloaded it starts playing. I've tried using the Action stop(); coding, which works file in the export preview in CS5, but on a website it runs straight away.
I know I can't use the command because that stops the timeline but by then the video is already playing. My solution would be to use and have the video in frame 2, then get javascript to jump to frame 2 when I was ready. However, I can't find a way to import a video file to a frame in CS5. Is there a better way?
View 1 Replies
Jul 14, 2009
I have some navigational buttons and one being a video player using XML to load the videos. When I click to navigate to another section, the page comes in however I can still hear the video.
Here's my code for the button sequence:
asstgm.addEventListener(MouseEvent.CLICK, asstClick);
function asstgmOver(event:MouseEvent):void
{
asstgm.gotoAndPlay("_over");
[Code].....
Is there a way to just disable the video player (xmlPlayer1_mc) from working once I click out of that section?
View 0 Replies
Apr 24, 2011
I am trying to stop video when I change to another page [URL].
View 9 Replies
Apr 25, 2011
Here s my problem, my stage contains 2 loaders, on the top there s an swf that contains buttons (my menu) and on the botom it loads in my content swf's.works out fine for fotos and so one, but im stuck when the loaded content is a video..
on my videoswf i ve got a play and a return(with stop) button, to return back to a frame to select what video should be played.. those buttons work perfectly, of course
the problem is now, that when i play the video and press a button from the upper loaded swf ( the menu) it loads another swf as usual,.. but the sound of the video still plays (so there has to be a child somewhere)..
now, how can i erase that movie instance when i cant excess it from the upper swf? is there a global value like stopEveryF*thing, or something like that ?
View 0 Replies
Jun 14, 2011
Actionscript 3. I have 4 buttons. 1 button goes to frame 1. 2nd button goes to frame 2, and so on.. Video is implanted into stage in one frame. When I press another button, it jumps to a different frame yet the video is still visible underneath the new content.. is there a way to clear content in the new frame?
View 3 Replies
Dec 14, 2011
i imported a fv4 video on Flash CS5. Video works. ButVideo sound dont stop when i clicked main button.
View 0 Replies
Jul 20, 2009
I have a micro site that is really one large flash file with labels driving the navigation. I have a couple of videos in certain sections, but when I click onto another button while the video is playing, you can still hear the audio.I want to disable the player once you "click" away.The code I have for the button(s) on the page is as follows:
servicesBtn.addEventListener(MouseEvent.CLICK, serviceClick);
//Back to the Main stage for navigation
function serviceClick(event:MouseEvent)[code]....
View 3 Replies
Mar 22, 2009
I have a video player in a multimedia presentation I am building in Flash, which is almost complete and just having one problem. When I change the page (scene change), I can still hear the audio form the video. The Video is still playing, how can I stop this?I was thinking if I added a stop function to all the buttons that link to different pages, but I don't know how to refer to the FLVPlayer. Somethink like
Bio_btn.addEventListener(MouseEvent.CLICK, StopVideo);
function StopVideo ????????????????{
???????????????();
[code].....
View 1 Replies
Mar 23, 2009
im currently building a site with 3 buttons and each buttons loads an external swf for each section of the site on a empty movie clip, im having an issue with the video section that has an video thumb gallery loading flv videos,
every time i try to go somewhere else in the site, the video sound continues to play (loop) behind the scene.
this is the actionscript code im using for my buttons.
[Code]....
View 9 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
Jul 27, 2009
I'm having a major problem stopping video that is played in an external SWF. I've added the external SWF file via the addChild method. However, when I remove it the video's audio keeps playing. The only other solution if I can't figure it out is rebuilding the site in AS2... needless to say I really really want to try and avoid that
View 3 Replies
Aug 11, 2010
I have a really cool video loaded in my flash site, but I want to stop it or remove it entirely from stage.
I'm trying this first...
Code:
var videoRequest:URLRequest = new URLRequest("videoplayer.swf");
var videoLoader:Loader = new Loader();
//this.buttonName.addEventListener(MouseEvent.CLICK, functionName);
[Code].....
it does remove the videoLoader but the sounds keeps playing... so im assuming that the video is still going.... how can i kill entirely??
View 4 Replies
Dec 3, 2008
I have imported a video into Flash CS3 and I want to be able to stop the video on the last frame. If I say false to autoRewind, it goes to a black screen and if I say true to autoRewind, it goes to a white screen. I believe if I use a cuePoint on the last second to STOP then it would work.
View 3 Replies
Mar 17, 2009
I'm looking for a (simple) way to make the vidplayer to stop playing when moving from one page to another one (on the same timeline hey). As it is right now if you start to watch a video and don't push the stop button before going to another page it keeps playing - hence you still hear the sound playing in the background while you're actually looking at another page. And that's not good.
View 3 Replies
Dec 2, 2009
Im using flash4 with action script 3.0, for a website promoting the xbox games Ive worked on.
[URL]
as you will see the videos wont stop playing when I change pages, and I cant work it out at all, Im more than willing to give you a mention on my site . Im more than willing to supply you with the flash file...
View 3 Replies
Jun 8, 2010
I'm trying to built a flash site with a flv video as background. The video and the buttons are in different layers in the main timeline. The problem is that when i open a certain button, i want the video to stop.
View 1 Replies