# Video lagging

**URL:** https://forum.kirupa.com/t/video-lagging/304951
**Category:** Uncategorized
**Created:** [February 17, 2010, 2:33am UTC](https://forum.kirupa.com/t/video-lagging/304951 "2010-02-17T02:33:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dramaqueenz](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@dramaqueenz](https://forum.kirupa.com/u/dramaqueenz)
#### Post date: [February 17, 2010, 2:33am UTC](https://forum.kirupa.com/t/video-lagging/304951/1 "2010-02-17T02:33:04Z")

</div>

Has anyone ever encounter problems with video lagging when loading 2 external file(one .flv file & the other .swf file) & play them concurrently?

I need to load the .flv file first & when the .flv play for 2 secs, I load .swf file & play. Then I see the video of the .flv become lagging until my .swf finish playing. What should I do?

Anyone can help? Urgently need help here!

```auto
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("logo.swf");

loadVid();
Tweener.addTween(mc24, {delay:2, onComplete: startLoad}); 

function loadVid()
{
    contents.myFLV.source = "video.flv";
    contents.myFLV.addEventListener(VideoEvent.COMPLETE, videoFinished);
}

function videoFinished(event:Event)
{
    contents.myFLV.play();
}

function startLoad()
{
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
    mLoader.load(mRequest);
    addChild(mLoader);
}

function onCompleteHandler(loadEvent:Event)
{
    addChild(loadEvent.currentTarget.content);
}

```
