[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2007-09-28
Medium Priority
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

Zeffer earned 2000 total points
ID: 19985342
>>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(eventObject.info.name == "clock"){
video1.addEventListener("cuePoint", listenerObject);  //video1 is the name of your video


Expert Comment

ID: 20212407
Forced accept.

EE Admin

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.
Suggested Courses
Course of the Month19 days, 7 hours left to enroll

873 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