Hi Guys,

Im trying to set up a flash movie with a preloader on a website which is set to play automatically.. Basically whats happening is ive created an external preloader to load up the file which works fine but the main movie seems to have already started once the preloader is finished.. I hope this makes sence..

The code i have used in both is below:

Preloader:
Code:
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("/clip3.swf")); //clip 3 is the main movie

function loop(e:ProgressEvent):void 
{
	var perc:Number = e.bytesLoaded / e.bytesTotal;
	percent.text = Math.ceil(perc*100).toString();
}
	
function done(e:Event):void 
{
	removeChildAt(0);
	percent = null;
	addChild(l);
}

I have not added any action-script on the main movie but i did try using the stop(); code which did not seem to work.

I hope someone can help!

Cheers!