Video Starting too fast

Hi everyone,

I’ve got a problem with my flash web site. You can go see www.pingouincreation.com which is my new web site where I got my problem.

You don’t have to understand anything the problem is into the intro. It is quite simple but I don’t really know how to fix it. The problem is the movie in the first page start before it totally loaded so depending of your connection and your cpu in doesn’t start at the begin.

I want to fix that.

Here’s my structure.

I have a swf which load the “template” which load another swf which load the movie

index.swf (preloader)—>base.swf—>preloader2.swf---->movie.swf

I think that the only thing you need is the code of the preloader


//code for the preloader and loader element

var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("introvideo.swf"));

function loop(e:ProgressEvent):void
{
	var perc:Number = e.bytesLoaded / e.bytesTotal;
	percent.text = Math.ceil(perc*100).toString();
	bar.scaleX = perc; 
}

function done(e:Event):void
{
	removeChildAt(0);

//graphic element
		percent.visible = false;
	bar.visible = false;
	barc.visible = false;
	barc2.visible = false; 
	charge.visible =false;
	carrerond.visible =false;
//loader	

addChild(l);
}

thx if you can help me…