# Looping video in Flash!?

**URL:** https://forum.kirupa.com/t/looping-video-in-flash/236333
**Category:** flash
**Created:** [August 20, 2007, 12:19am UTC](https://forum.kirupa.com/t/looping-video-in-flash/236333 "2007-08-20T00:19:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stoney\_kun](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stoney_kun/32/3395_2.png) [@stoney\_kun](https://forum.kirupa.com/u/stoney_kun)
#### Post date: [August 20, 2007, 12:19am UTC](https://forum.kirupa.com/t/looping-video-in-flash/236333/1 "2007-08-20T00:19:45Z")

</div>

Hey guys,

I am struggling to get a streamed video (FLV) to automatically loop? I have attached the following code to the video component:

```auto

on(complete) {
   trace("hit");
   this.autoRewind = true;
   this.play();
}

```

This doesn’t seem to work? “hit” isn’t ever popping up, which tells me on(complete) is the wrong event handler? Can someone please help me? 🙂

Thanks.
