dakcurious
11-07-2007, 11:26 PM
function vid1Play(CLICK:Event):void{
videoStream.play("vid1.flv");
var client:Object = new Object();
client.onMetaData = function(metadata:Object):void{
var LengthCheck = metadata.duration;
}
videoStream.client = client;
if(LengthCheck > 0 && videoStream.time >= LengthCheck){
AddChoiceGen2(null);
}
}
Above is a function I have created that is triggered after the user clicks 1 of 2 on-screen buttons. It then plays a video ("vid1.flv") and when it finishes I want to display 2 more buttons (triggered by AddChoice2 function). I feel I'm close to achieving what I want but need some help. Below is the simple code of what I'm trying to accomplish. I'm totally comfortable with ignoring the above code if it can be achieved another way using the code below.
function vid1Play(CLICK:Event):void{
videoStream.play("vid1.flv");
//Code that triggers the "AddChoiceGen2" function when the
//"vid1.flv video finishes
}
Thank you in advance for any time and help you may contribute.
thanks again
videoStream.play("vid1.flv");
var client:Object = new Object();
client.onMetaData = function(metadata:Object):void{
var LengthCheck = metadata.duration;
}
videoStream.client = client;
if(LengthCheck > 0 && videoStream.time >= LengthCheck){
AddChoiceGen2(null);
}
}
Above is a function I have created that is triggered after the user clicks 1 of 2 on-screen buttons. It then plays a video ("vid1.flv") and when it finishes I want to display 2 more buttons (triggered by AddChoice2 function). I feel I'm close to achieving what I want but need some help. Below is the simple code of what I'm trying to accomplish. I'm totally comfortable with ignoring the above code if it can be achieved another way using the code below.
function vid1Play(CLICK:Event):void{
videoStream.play("vid1.flv");
//Code that triggers the "AddChoiceGen2" function when the
//"vid1.flv video finishes
}
Thank you in advance for any time and help you may contribute.
thanks again