How to Stop a Video in ActionScript 3

I have created a flash site that navigates between 4 pages (Home, About, Play, Making)
The pages Play and Making both contain videos that are a movie clip symbol and have skins on them.
When i press play (I turned off autorun) on a video it will play as should do, but when i navigate to another page such as Home or About, the new page will appear but the sound from the video continues to run in the background.
It's as if it keeps that page in the background and keeps playing. When i attempt to go back to the page and try to press pause - the video is at the beginning, waiting for me to press play, its not going at all, even though i can still hear the music of it going.
I want to know how i can make it stop the video when i navigate to another page.
I have tried to put "instance_name.stop()" but it stops all animations in the whole site. (every other animation is a graphic not a movie clip)
I run Flash CS5 and its in an actionscript 3 page.
How can i make it stop????
If you need more info to help me with this problem, let me know  and i will tell you what you need...

The very first action in any of the page navigation should be a control on the video to stop the video. Then.... and only after the video has been stopped, navigate to the next page.
Most likely your video player has a "Stop" button. Call that action first in your page navigation button.
If you are using NetStream, then you'll want that action to be
netstream.close();
so that the download of that first video file also stops. Other wise the entire first video file may be downloaded even if the viewers does not watch the whole thing. Be sure to do some testing to make just you can also stop the downloading, not just turn off the video/audio.
Best wishes,
Adninjastrator

Similar Messages

  • How to stop "Preparing Video for Display"

    I've used FCP for countless projects but haven't ever tried to put hundreds of stills into the timeline for a final result that looks like what free software packages produce for consumer camera stills.  I have a number of questions related to achieving this result, but I'll start with this. 
    The 'preparing for display' message comes up when I move chunks of pictures around.  It freezes all activity until it's done (rendering?), and usually the action that led to it is a minor thing that still needs further manipulation.  Would it help to reduce the resolution of the stills?  How do I do that all at once?  There are too many to treat individually.
    Thanks for letting me know how to stop getting my process hijacked!
    It is really slowing me down, and I'm on deadline.
    With much appreciation,
    Roxane

    Still images are NOT video. FCP has to translate each image into a format that will play as video.
    This process happens on the fly and as the numbers of images go up, the amount of time and system resources required to accomplish this also increase in a linear way.
    There are a couple of things you can do at the system level.
    1. make sure you have your RT playback set to Unlimited.
    2. in System settings, increase your stills cache. By default it is around 10% of FCP's RAM. If you have 4GB or more in the machine, your RAM available to FCP should be set at 100% and you may want to bump up the stills cache to 50% (or more if the project is mostly stills). Do not raise it to 100% as you have to leave some free ram for the program.
    Along with what Russ has suggested, you should get better performance. You need to be realistic though. FCP is a video editor, not a slideshow generater. If the work is a slideshow, there are better tools.
    Have fun.
    x

  • How to Stop Flash Video from Downloading

    Greetings,
    Can anyone tell me how to configure Flash video from
    automatically beginning the download process as soon as the page
    loads? I've set autoPlay to false, so it does stop on the first
    frame. But I can still see the download progress bar when it should
    wait for a click.
    Thanks

    Is this one of those questions you guys get tired of
    answering? ;-)
    I've reviewed the answers for similar questions, but found
    none that fully addressed my issue. If you could refer me to a
    post, or an Adobe tutorial that deals with this head on, I would
    really appreciate it.
    Thanks.

  • How to stop the video buffering when video is paused

    Hi
    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.
    can any one please help me for doing this i searched lot but not getting the solution please help me out to sort out this.
    Please refer the following link that I want to create the progress bar for my video player.
    http://tv.adobe.com/watch/training-with-trani/shake-detection/
    Thanks
    Sameer

    Hi
        Here is the code i would tried bothe bufferTime and maxBufferTime but not getting the required output.
        please check the code below.
        var _videoInfo = new Object();
        _videoInfo.onMetaData = onMetaDataHandler;
        ns = new NetStream(nc);
        //ns.maxPauseBufferTime = 0;
        ns.client = _videoInfo;
        ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
        ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,asyncErrorHandler);
        sndTransform = new SoundTransform(initVol);
        vid = new Video(stage.stageWidth,stage.stageHeight);
        vid.smoothing = true;
        videoCont.addChild(vid);
        vid.attachNetStream(ns);
        ns.play("video.flv");
        ns.soundTransform = sndTransform;
    Thanks

  • How to stop imported video from looping?

    I imported a very short video clip to my timeline. I want it to play only once. Then the last frame of the video should stay visible and static, as a background. And I want to start my animation then; after the video plays once. How do I achieve this? Right now, when I export as SWF, only video plays and loops. It doesn't even show anything after that's on the timeline after the video...
    Thanks

    there's no enough info to justify a tutorial.
    click insert>new symbol>movieclip>ok.  click file>import>import video>tick on your computer>click browse>navigate to your flv>click ok>tick embed flv in swf and timeline>next>next>finish.
    add a layer to the timeline that contains your video and, add a keyframe to the last frame of the layer and, in the actions panel, add: stop()
    after creating a movieclip (eg, flv_mc) with your video on the movieclip's timeline, drag the movieclip (flv_mc) from the library panel to your main timeline.

  • How to stop youtube videos from playing after restart

    every time I restart firefox (currently 24.1.1 or 14.0.1) any tabs with youtube videos start playing and I have to wait until after restart is complete before I can find it/them.
    is there a way to stop this?

    I don't know of a way to stop auto-play on restart only. There are some extensions that can stop auto-play in general (i.e., all the time). I haven't tried any of them myself, but it looks as though these might help:
    * [https://addons.mozilla.org/En-us/firefox/addon/smartvideo-for-youtube-mytube/ SmartVideo For YouTube]
    * [https://addons.mozilla.org/En-us/firefox/addon/stop-youtube-autoplay/ Stop YouTube Autoplay] (updated version not yet reviewed)

  • How to stop the video from playing automatically

    I've imported video to flash using the Import Video function
    and one of their skins. How do i set the parameters so the video
    does not play automatically? Thanks, K

    Click on whatever your using to display the video, whether it
    be actual video footage embedded or your using an Adobe video
    player component to display it while the footage is hosted
    remotely.
    Then go to the top toolbar dropdown Window > Component
    Inspector.
    If your video object is embedded on the stage, look in the
    Component Inspector window, on the Parameters tab, there will be
    options, one of them is autoPlay, set that to False.
    If you are using one of Adobe's pre-built components to
    display your video, click your player, and in the Component
    Inspector there will be a checkbox labelled "Automatically Play",
    uncheck that.

  • How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share form

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

  • How to stop autoplay of videos?

    June 2013: videos on websites start playing without my permission, how to stop this?
    What I tried:
    I uninstalled Adobe Flash (disabling Flash add-on didn't work), existing "stop autoplay" add-ons are no longer working according to reviews, tried solution described in "How can I stop videos on websites from automatically playing?" (Type in the address bar: about:config Then search for: plugins.click_to_play Double click and it will be set to true) - doesn't stop videos from playing either. Sent feedback to FireFox about the issue.
    From what I had read in reviews, this is not only about Flash: YouTube disabled add-ons and searches for anything that can play videos installed in Windows, including using HTML5 for this. Have no information how other websites do it.
    How to stop this?
    Thank you.

    For those of you who do not wish to use StopTube, the click to play plugin in the about:config works. You may just be missing one final step. Once you set the boolean to true, navigate to your firefox addons page and look for shockwave (adobe) flash plugin or whatever you use to play videos. Select the drop down to "ask to activate" and there you have it. When the boolean was set to false, the "ask to activate" dropdown option was unavailable.
    Hope it helps.

  • How to do a stop time video

    Hi everyone,
    I want to do a stop time video, sorry I don't know how to say that. Basiclly it's when the video playing, at that moment, I want to stop the time, freeze it for 1 second, but the video still playing, after 1 sec it continue. For example, I drop a apple in that video, apple falling, but at 1 sec, it stop falling, time at player still running, and after 1sec, it continue falling. Please help.
    Thank you.

    You can also Export a Still, for the Frame that you wish to hold, Import it with a Duration of 01 sec., then Cut your Clip, and place that Still Image in between a Cut at that point - if I understand what you want to do.
    Good luck,
    Hunt

  • Video Gallery, How to Stop overlapping streams when user navigates to next item? Bug or syntax?

    My NASA Multimedia News App is exhibiting behavior that I would very much like to change. The app is in the store at
    http://apps.microsoft.com/windows/en-us/app/nasa-multimedia-news/7e74f3fb-b550-4ac6-b437-388f034ee6df
    If you look at one of the three video galleries, here is the scenario:
    1. Start one of the videos, for example the most recent one.
    2. without MANUALLY pausing the first video and before it finishes, scroll to the next item in the same gallery and PLAY it.
    3. two streams are now playing, audio overlapping.
    4. move on to the next item in the gallery OR GO TO A DIFFERENT PAGE/SCREEN, cover your ears.... 
    in fact the stream needs to stop if you navigate away from it by either starting a different video in the same gallery or when you navigate to a different screen/page in the app. and it doesn't.
    5. in fact, if you close the app by dragging it down and don't final close it by drag/hold flip or using taskmgr, if you re-open it the multiple audio streams will still be playing from where they left off.
    I don't honestly know if it is the video control or something I didn't do in the syntax (or even if something CAN be done), but with the overlapping cacophony that results, it is less than optimal. My expectations/hopes, were that if one stream was already
    playing, that moving to a new item and starting THAT stream would automatically terminate the original one that was playing so that only a single audio stream can be heard.
    I hope the issue is clear.
    Is this a bug? If it is by design, ugh. And is there a work around?
    -- Barb Bowman

    On Sat, 5 Apr 2014 01:20:04 +0000, thorwm wrote:
    >All kidding aside, I did some searching in the forum and I found this post that may help?
    >
    >http://social.technet.microsoft.com/Forums/en-US/6037342d-2575-411b-a496-90d306f82b00/unable-to-stop-a-video-playing-using-updatecontextvideopause-true?forum=projectsiena
    >
    >Btw, what you're talking about sounds very similar to how Adobe Flash works - it figures that you (the end user) must know what you're doing when you start another audio file / video so it keeps adding to the stream.  The way I helped
    the end user was to add the code to stop the media file playing when another one was selected.
    >
    >Hopefully the thread above gives you some ideas how you might do this in your situation. 
    >
    >
    >I look forward to hearing what you find - sounds like a neat app (no pun intended!)
    Thor, it is my NASA Multimedia App - I resubmitted it last night and I guess a
    different tester got it and the update went through. But the issue still exists.
    The difference between what I have in my app and that other thread is that I
    have a video GALLERY as opposed to individual players. I did try messing around
    with that  syntax
      UpdateContext({videoPause: false}); UpdateContext({videoPause: true});
    Navigate(scrHome, ScreenTransition!Fade)
     But it didn't work between screens in my App and anyway, half of the issue is
    that it wouldn't work on a single screen that contains a video gallery that has
    say 10 videos, there is no OnSelect function used. I tried experimenting to see
    if I could get syntax working at least for when the navigation is to a different
    screen, but it doesn't work for me. Probably because it is a gallery.
     Hoping that Robin has a solution...
    -- Barb Bowman

  • Video file how to stop and find Video is completed.

    hi
    we have load the .flv file the following code:
    //===================================
    var vid:Video = new Video(310, 174);
    vid.y=24;
    vid.x=308;
    addChild(vid);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    vid.attachNetStream(ns);
    var listener:Object = new Object();
    listener.onMetaData = function(evt:Object):void {};
    ns.client = listener;
    ns.play("Best Ford Commercial Ever!!!.flv");
    //===================================
    video play fine. i using close btn close the Video. the folloing code:
    //===================================
    removeChild(vid)
    //===================================
    problem:   1.  Video will be closed but audio is running. How to stop the audio and video.
    2. How to trace the video is completed.
    thks

    Use NetStatusEvent.NET_STATUS event listener for netstream and trace(event.info.code);
    if info.code is NetStream.Play.Stop the video is finished playing.
    use NetStream.close() method to Stops playing all data on the stream

  • How do I stop a video playing in the background?

    I'm using videos in a DPS publication for iPad, but when I turn away from the page while the video plays, it continues to play in the background. That's not a thing I want. How do I stop that from happening so that the video pauses or stops when I flip pages?

    In other blogs some mentioned a little tool that stops the video when u go to other pages but it doesn't on Android as the mentioned here

  • How do I watch videos without them stopping all the time?

    How do I watch videos without them stopping all the time?
    I have Snow Leopard on two computers and IOS5 on IPad 2. Videos will not run without stopping. I am talking about videos like on Yahoo and YouTube etc.

    Slow Internet download speeds are typically responsbile, if you have 5 Mb/s or slower it's really bad. 10 Mb/s or higher is preferred and 20 Mb/s or better is ideal.
    If you use a alternate DNS service like GoolgeDND or OpenDNS which has to fetch Akami hosted content from overseas instead of using your much closer ISP servers.
    If your router is the old G model, upgrade to N.
    If your wifi is open, you could have leechers. The more on the network, even a fast one, the slower it gets.
    Secure your network info here etc.,
    https://discussions.apple.com/message/16276201#16276201

  • How to stop sound of video?

    Hi,
    I have an issue. In the landing page of my site I have loaded a video with standard html5 code. When I click on an anchor link I would like to mute the video, or even better set it to the last frame. (In the video I have removed the controls it is a fullscreen landing page video)
    Example:
    www.mysite.com (plays the video us usual)
    www.mysite.com#howto(stops the video and set it to the last frame or mute it)
    Hope I made it clear...
    Thank you all in advance,
    Frank

    You could add an onclick javascript event to pause the video on the anchor links. The anchor link should look something like...
    <a href="#anchor_id" onclick="document.getElementById('my_video_id').pause();">My Anchor Link</a>
    After further review, you could just mute it  I suppose, it doesn't seem as clean though since the video will still be running...
    <a href="#anchor_id" onclick="document.getElementById('my_video_id').muted = true;">My Anchor Link</a>

Maybe you are looking for

  • Valuated Stock Value differs - Urgent !!!

    Hi All, The valuated stock value in R/3 and BW differs. We are using the standard business content for the inventory report which are the 3 datasources 2LIS_03_BX, 2LIS_03_BF, 2LIS_03_UM & Infocube 0IC_C03... When the query is executed the backward c

  • I am unable to see the mail content in my iPad since few days.

    Hello , for few days I cann't see the mail content. There is only blank page that comes. Sender name comes in inbox only. Please help.

  • A lot of unknown traffic.

    My goal is to reduce traffic loads and save some money. Now I am exporting Netflow to AdventNet Netflow Analyzer - it is helping me to understand what traffic is passing through router. It gives a lot of useful information. But, I still have a lot of

  • How does a large company like Verizon think they can treat their customers this way?

    One of the basic phones on my account was lost.  I called to see if there was an upgrade available.  They said that the only one available was on a different phone which was a smart phone. I was told I could transfer the upgrade to the basic phone. 

  • Inspection lot problem during inbound delivery

    Hi, I am facing following issue during inbound delivery. I have activated inspection type 01 in material master for a packing material. Created a PO for the material through ME21N. PO created. Now I am creating inbound delivery through VL31N with ref