Align Clip on stage that has wide masking

Is there a way to say “only use the coords of the viewable area” when aligning a mc that is masking a really wide object? (I’m looping through XML and duplicating MC’s inside a centered mc and under a mask.)

Thanks

just refer to that “centered mc” instead of the entire movieclip.

I can’t - this entire movie is loaded inside another which is ease-centering all the content - it takes the width of the empty MC I load into. I’m then centering more content inside the loaded clip.

you got some code? i’ll see if i can coerce it into submission:)

There are 3 different movie’s we are talking about here… the main shell (top drop down nav), the underlying empty clip that I load everything into (which is always ease-centered using a simple ease function based on it’s height and width), and the actual content clips that I load in.

Normally the empty loader clip size inherits the dimensions of the loaded file, but when this file also uses a noScale stage, centered clip, and masked content - things go haywire (all because I’m duplicated 200 or so clips vertically and it pushed everything up and down)

The code itself is just basic:

Shell:

Stage.align = “TL”;
Stage.scaleMode = “noScale”;

On the loader clip:

onClipEvent (enterFrame) {
endY = (Stage.height / 2) - (this._height / 2);
endX = ((Stage.width / 2) - (this._width / 2));
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}

Inside the loaded movie:

onClipEvent (enterFrame) {
endY = (_parent._height / 2) - (this._height / 2);
endX = ((_parent._width / 2) - (this._width / 2));
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}

do you have the loop code handy?

instead of referring to the entire loaded movie, use another mc like defective said. It would like [AS]onClipEvent (enterFrame) {
endY = (_parent._height / 2) - (this.center_mc._height / 2);
endX = ((_parent._width / 2) - (this.center_mc._width / 2));
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}[/AS]center_mc being the mc

Gotcha - let me try it out - thanks guys