is it possible to get flv movies to freeze on the last frame

Posted on 2009-04-22
Last Modified: 2012-05-06
Ive an flav ovie which I like to freeze on the frame as a permanent still, is this possible?
Question by:sousflai
    LVL 6

    Expert Comment

    You can add a cue point to the time you want to pause than call a function:
    var yourlistener:Object = new Object();
    yourlistener.cuePoint = function(eventObject:Object):Void  {    
        if ( == "yourCuePoint") {
            yourFunction() //you can pause or pause and load a still image here...

    Author Comment

    that's brilliant, youll have to forgive my lack of skills, wher youve put you can pause or a load an image jhere, what command would I use to talk to the external flv to make it stop, lets say for example on the 359th frame?
    LVL 6

    Expert Comment

    You can add a cue point from the Parameters of FLVPlayer or directly from code. If you want it from code, here is a working example: I wrote it fast but It should work:
    // create your cuepoint object
    var pauseHere:Object = new Object(); 
    // where do you want to place it? 359/video fps = yourTime in seconds
    pauseHere.time = 1.5 ;  = "point1";
    pauseHere.type = "actionscript";
    // add your cuepoint object to flv player component
    // add your listener
    yourFLVInstance.addEventListener(MetadataEvent.CUE_POINT, cueListener);
    function cueListener(eventObject:MetadataEvent):void {
     trace("hello cue point");

    Open in new window

    LVL 6

    Accepted Solution

    So... for pausing at frame 359;
    If your video is NTSC you need to write pauseHere.time = 11.96
    If it's PAL you need to use 14.36 for the .time parameter.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now