How to trigger a function at a certain position in my external .flv file

Posted on 2007-09-28
Last Modified: 2010-04-03
I have a flash movie that loads in an external .flv file.

I have a movie clip containing a 2 minute count down clock.

I want to be able to tell flash to start the count down clock at a certain point in my .flv movie.

How do I get the current position of my flv movie so I can construct my if/then statements to do this.

Question by:millionairejeff
    LVL 23

    Accepted Solution

    >>How do I get the current position of my flv movie <<
    you are looking at it back to front
    insert a cue point at the time you want the clock to start..then use actionscript to start the clock swf when the cuepoint is reached.
    if you had a cuepoint named..clock ..and a swf named.. clockMovie

    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    if( == "clock"){;
    video1.addEventListener("cuePoint", listenerObject);  //video1 is the name of your video

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    760 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

    12 Experts available now in Live!

    Get 1:1 Help Now