View Full Version : Play movie clip after flv plays in player
ruddiger52
08-11-2009, 12:46 AM
I have a simple file in which an external flv plays through the flvplayback object. How can i get a movie clip to play after the flv has played through one time ? I want the movieclip to have two buttons one to send you to another site and one that will replay the flv
Thank You
zenkert
09-01-2009, 01:35 PM
Hi,
You can manually add a cue point for the flv playing in the flv player.
and then name it like this sample:
/* Property name of the flv player is "videoPlayer....
.... addASCuepoint (8, "end") adds a cue point when the player has played
8 seconds of the the flv and names that cue point "end".*/
videoPlayer.addASCuePoint(8, "end");
/////
videoPlayer.addEventListener("cuePoint", this);
// Adding actions for cue points in the specified video
function cuePoint(eventObj:Object) {
switch (eventObj.info.name) {
case "end" :
//Insert code for whatever you want your button_mc to do...
videoPlayer.stop();
videoPlayer.removeEventListener("cuePoint", this);
break;
}
};
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.