Live Preview registration point issues

Hi All, I’m really struggling with this…

Ive spent all this time creating a component which revolves around a centred registration point and then went on to create a Live Preview. All was fine until I found that my Live Preview is being offset from the main component. The centred registration point in the Live Prevew is lining up with the top left of the main component. Why is this?

I know the stage takes TL for its registration point by default, but this a Live Preview sitting within a component movie with a centre reg point? Im confused.

Ive got this DITRY FIX, but surely there is another way?


winPreview_mc._x=Stage.width/2;
winPreview_mc._y=Stage.height/2;

The rest of my code for Live Previw …


Stage.scaleMode = "noScale";
Stage.align = "TL";//align top-left of stage

//routine called whenever component properties have been changed

function onUpdate() {
	this.winPreview_mc.removeMovieClip();//remove existing instance
	trace("update..");
	// create an instance of the Window
    //settings = new Object();
    //settings.content = xch.content;
	//settings.changeHandler = xch.changeHandler;
	
	// make sure that we don't lose the size setting when 
    // user clicks in/out of the component parameters panel
    
	_root.attachMovie("RLWindowPreviewSymbol", "winPreview_mc", 1000, {_x:Stage.width/2, _y:Stage.height/2});
	winPreview_mc.setSize(10, Stage.width, Stage.height);
}

// make sure we update the size of the component 
// when the live preview is resized!
function onResize() {
	trace("stage resize detected..");
	winPreview_mc._x=Stage.width/2;
	winPreview_mc._y=Stage.height/2;
	winPreview_mc.setSize(10, Stage.width, Stage.height);
}
Stage.addListener(this);

What do i do to fix this?

Thanks in advanced