import fl.video.VideoEvent; flvPlayer.source="myInitialVideo.flv"; flvPlayer.addEventListener(VideoEvent.COMPLETE, myFunction); function myFunction(evt:VideoEvent):void{ gotoAndStop(3); }