In short. Im trying to position everything dead center on resize esxept the bluebarBack MC, she needs to go y+50 to align properly, every time i execute something i get weird positioning and snapping of bluebarBack MC
Thanks – any help is appreciated… long live :mr_t:KIRUPA:mr_t: happy birthday
:insomniac::insomniac:
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
function resizeHandler(e:Event):void
{
centerRectangle.x = (centerRectangle.stage.stageWidth / 2) - (centerRectangle.width / 2);
centerRectangle.y = (centerRectangle.stage.stageHeight / 2) - (centerRectangle.height / 2);
bluebarBack.x = (bluebarBack.stage.stageWidth / 2) - (bluebarBack.width / 2);
bluebarBack.y = (bluebarBack.stage.stageHeight / 2) - (bluebarBack.height / 2);
gradientBack.x = (gradientBack.stage.stageWidth / 2) - (gradientBack.width / 2);
gradientBack.y = (gradientBack.stage.stageHeight / 2) - (gradientBack.height / 2);
}
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);
stage.dispatchEvent(new Event(Event.RESIZE));
:insomniac::insomniac: