I have figured out how to detect when the video file is done playing so I can start the movie clip. What I need help with is how to determine when the movie clip is done playing so I can start the video clip again. Is there a listener or some kind of trigger that can be passed from the .swf file?
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.onStatus = function(infoObject) {
// check for end of clip1 playing
if (infoObject.code == "NetStream.Buffer.Empty") {
// play the pause movie clip before playing next clip
video1_video.clear();
createEmptyMovieClip("play_mc", 2);
LoadMovie("pause.swf", play_mc);
//check for end of movie clip and play next clip
}
stream_ns.setBufferTime(3);
video1_video.attachVideo(stream_ns);
stream_ns.play(clip1.flv);
I forgot to mention that I'm using Flash Professional version 7

New Topic/Question
Reply



MultiQuote




|