Loop FLV Video in AS2

Just sharing some code I found that worked to loop an flv clip that I had dropped into an AS2 movie:

var myLis:Object = new Object;
myLis.complete = function(){
flvPlayer.play();
}
flvPlayer.addEventListener(”complete”, myLis);

Just drop that in a frame and make sure the Instance name of your flv is flvPlayer.

Found the code in the macromedia.flash group on Google groups, which also had AS3 code for the same thing (but I did not test it). Enjoy!

2 Responses to “Loop FLV Video in AS2”

  1. salsa Says:

    http://www.sitedesignmagazine.com/dailies

  2. Ebook shop in India Says:

    Really useful bit of code thanks

Leave a Reply

This entry was posted on Friday, September 4th, 2009 at 7:47 am and is filed under Flash Design & Development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.