# Why my Flv video stops when using Tweener?

**URL:** <https://forum.kirupa.com/t/why-my-flv-video-stops-when-using-tweener/293391>\
**Category:** Uncategorized\
**Created:** [July 28, 2009, 12:01pm UTC](https://forum.kirupa.com/t/why-my-flv-video-stops-when-using-tweener/293391 "2009-07-28T12:01:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [July 28, 2009, 12:01pm UTC](https://forum.kirupa.com/t/why-my-flv-video-stops-when-using-tweener/293391/1 "2009-07-28T12:01:31Z")

</div>

Hi,

Weird problem, I’m using the code below to run a looped video, everything works just fine until I uncomment my other lines of script, some use Tweener for alpha or width animation.  
My video starts playing and stop at (I guess) the time elapsed for the time.

Any solution ?

```auto

var video:Video = new Video();
        addChild(video);
         
        var nc:NetConnection = new NetConnection();
        nc.connect(null);
         
        var ns:NetStream = new NetStream(nc);
        ns.client = {onMetaData:ns_onMetaData, NetStatusEvent:ns_onPlayStatus};
         
        video.attachNetStream(ns);
        ns.play("sky.f4v"); 
        
        function ns_onMetaData(item:Object):void {
          video.width = item.width;
         video.height = item.height;
          video.x = (stage.stageWidth - video.width) / 2;
         video.y = (stage.stageHeight - video.height) / 2;
        }
        
        function ns_onPlayStatus(event:NetStatusEvent):void {
           if(event.info.code == "NetStream.Play.Stop"){
                ns.seek(0);
           }
        }
        ns.addEventListener(NetStatusEvent.NET_STATUS, ns_onPlayStatus);
         
        bkg1 = new Sprite(); 
        bkg1.graphics.beginFill(0x12a2cb); 
        bkg1.graphics.drawRect(0, 0, stage.stageWidth, 410);
        bkg1.alpha = 0;
        bkg1.width = 0;                                 
        bkg1.height = 410;                                
        bkg1.x = 0;              
        bkg1.y = 0;              
        addChild(bkg1);   
**Tweener.addTween(bkg1, {width:stage.stageWidth, time:1.6, transition:"easeOut"});**

```

Thank you!
