<pre> //import the necessary functionality import fl.video.*; //add a listener for when the movie ends my_player.addEventListener("complete", the_end); //this will execute when movie ends function the_end(event:VideoEvent):void { //go to first frame my_player.seek(0); //and play my_player.play(); } </pre>