|  | Re: Seemless Video in Flash by demetri tashie on Jun 15, 2009 at 7:40:20 pm |
hi michael -
i have worked on that very problem coming up with various solutions. the way that i accomplish that best, is not necessarialy the most popular way.
i'll have 2 instances of the FLVPlayback component ( one called flvPlayer 1, the other flvPlayer2 ) with flvPlayer1 positioned exactly on top of flvPlayer2. player2 is loaded but has autoPlay set to false.
then, on COMPLETE playing of player 1, player 2 plays,and player 1 visibility s turned off, or removedChild etc. it works seamlessly for me.
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
flvPlayer1.source="video1.flv";
flvPlayer2.source="video2.flv";
flvPlayer2.autoPlay=false;
flvPlayer.addEventListener(VideoEvent.COMPLETE, myFunction );
function myFunction(event:VideoEvent):void{
{flvPlayer2.play();flvPlayer.stop();flvPlayer1.visible=false;}
}
hope that helps
| |