# Loop multiple flv

**URL:** https://forum.kirupa.com/t/loop-multiple-flv/241583
**Category:** flash
**Created:** [October 15, 2007, 8:52pm UTC](https://forum.kirupa.com/t/loop-multiple-flv/241583 "2007-10-15T20:52:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beet](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@beet](https://forum.kirupa.com/u/beet)
#### Post date: [October 15, 2007, 8:52pm UTC](https://forum.kirupa.com/t/loop-multiple-flv/241583/1 "2007-10-15T20:52:15Z")

</div>

Good evening. This is really beginning to stress me out! I have just managed to get an embedded flv to loop…WOO HOO! Even though it’s less than perfect as there’s a brief pause before it plays again. Please can someone tell me how I go about modifying the script below so as to loop several embedded flvs as apposed to just one?

import fl.video.\*;

// Video component instance name  
var flvControl = clip1;  
var flvSource = “1.flv”;

// Loop the video when it completes  
function completeHandler(event:VideoEvent):void  
{  
flvControl.seek(0);  
flvControl.play()  
}  
flvControl.addEventListener(VideoEvent.COMPLETE, completeHandler);

// Set video  
flvControl.source = flvSource;

I’ve already tried duplicating the script with “clip2” “2.flv” etc…with now success.

Please help me!!! Thanks.
