# Background video taking a log time to appear

**URL:** <https://forum.kirupa.com/t/background-video-taking-a-log-time-to-appear/266555>\
**Category:** flash\
**Created:** [July 22, 2008, 2:45am UTC](https://forum.kirupa.com/t/background-video-taking-a-log-time-to-appear/266555 "2008-07-22T02:45:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [July 22, 2008, 2:45am UTC](https://forum.kirupa.com/t/background-video-taking-a-log-time-to-appear/266555/1 "2008-07-22T02:45:00Z")

</div>

I have a video that I am playing in the background of my movie.

```
	function BackgroundManager(bkg){
		if(bkg.substr(-4).toLowerCase() != '.flv'){
			var loader:Loader = new Loader();
			
			function loaded(evt:Event){
				var bkg:DisplayObject = evt.target.content;
				addChild(bkg);
			}
			
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
			loader.load(new URLRequest(bkg));
		}
	}

```

Pretty simple eh?

The problem is that the background takes a while to display. I’m not sure if Event.COMPLETE is being called after the whole thing is downloaded or just after it has buffered up to a point, but either way it seems to be too long. Is there a way to have it display faster?
