• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

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

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.

THANKS!
0
millionairejeff
Asked:
millionairejeff
1 Solution
 
ZefferCommented:
>>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"){
_level0.clockMovie.play();
     }
}
video1.addEventListener("cuePoint", listenerObject);  //video1 is the name of your video

Z
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now