FlvPlayback Problem
My question seems very simple but i could not manage it.
I put a FLVplayback in my flash. I have three buttons. When the user hits the button i want the videos play in a line.
In first button 01A.flv then 01B.flv then 01C.flv
In second button 02A.flv then 02B.flv
Tn third button 03.flv only.
I could not manage it.
Here is my AS3
Thanks for the help.
stop();
zero.addEventListener(MouseEvent.CLICK,zero1)
function zero1(e:MouseEvent):void{
gotoAndStop(1)
}
one.addEventListener(MouseEvent.CLICK, vid1);
two.addEventListener(MouseEvent.CLICK, vid2);
two.addEventListener(MouseEvent.CLICK, vid2B);
three.addEventListener(MouseEvent.CLICK, vid3);
function vid1(event:MouseEvent):void
{
vidPlayer.source = "01A.flv"
}
one.addEventListener(MouseEvent.CLICK,d1)
function d1(e:MouseEvent):void{
gotoAndStop(2)
}
function vid2(event:MouseEvent):void
{
vidPlayer.source = "02A.flv";
}
function vid2B(event:MouseEvent):void
{
vidPlayer.source = "02B.flv";
}
two.addEventListener(MouseEvent.CLICK,d2)
function d2(e:MouseEvent):void{
gotoAndStop(2)
}
function vid3(event:MouseEvent):void
{
vidPlayer.source = "03.flv";
}
three.addEventListener(MouseEvent.CLICK,d3)
function d3(e:MouseEvent):void{
gotoAndStop(2)
}
// for clarification
var video:FLVPlayback = vidPlayer;
video.autoPlay = true;
video.addEventListener(Event.COMPLETE, function(e:Event) {
// video has finished
gotoAndPlay(1);
});
Message was edited by: adil congur
