show static image then play 2 .flv
I want to have a player that shows a static image to begin with and then plays 2 short .flv files, one after the other and then reverts to the static image.
I've found this, which works beautifully for the static image and one movie clip but I don't know how to add the second movie clip.
startBtn.onRelease = function() {
// make sure your video has an instance name of vid
// and it is NOT set to auto play.
vid.play();
this._alpha = 0;
};
var listenerObject:Object = new Object();
listenerObject.stopped = function(eventObject) {
startBtn._alpha = 100;
};
vid.addEventListener("stopped",listenerObject);
listenerObject.playing = function(eventObject){
startBtn._alpha = 0;
//Or you can use startBtn._visible = false
}
vid.addEventListener("playing",listenerObject);
Any help would be very welcome!
Jeni