Screen dimensions and Preloader Problems

Hello

I’m trying to achieve the simple task of loading a flash clip (dimensions 480*720) and placing a simple preloader in the middle of the screen.

I can’t seem to get the dimensions right and the clip seems to be pushed off rhe canvas to the right. I have coloured the canvas blue to show this.The Preloader stays in the top left of the screen.

Can you correct my script?

//do I need this to stretch out the movie so I can place loader in center of screen???
var clip=createEmptyMovieClip(“canvas_mc”,0)
canvas_mc.beginFill(0x0000FF,100);
canvas_mc.moveTo(0,0);
canvas_mc.lineTo(480,0);
canvas_mc.lineTo(480,720);
canvas_mc.lineTo(0,720);
canvas_mc.endFill();

var clip=createEmptyMovieClip(“clipHolder_mc”,2)

var clipLoader:MovieClipLoader = new MovieClipLoader();
var clipLoadHandler:Object = new Object();
clipLoader.addListener(clipLoadHandler);

//create loading square
this.createEmptyMovieClip(“sq_mc”,1);
sq_mc.beginFill(0xff0000,100);
sq_mc.moveTo(0,0);
sq_mc.lineTo(100,0);
sq_mc.lineTo(100,20);
sq_mc.lineTo(0,20);
sq_mc.endFill();

sq_mc.moveTo(canvas_mc._width/2,canvas_mc.height/2);

clipLoader.loadClip("./flashSplash.swf",clipHolder_mc);

clipLoadHandler.onLoadProgress=function(_mc:MovieClip, loaded:Number){

sq_mc._xscale=(loaded/100000)*100

}