stage.stageAlign = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE;
theStrings.x = stage.stageWidth/2; //this places the mc to the horizontal center of the swf theStrings.y=stage.stageHeight/2 //this places the mc to the vertical center of the swf or theStrings.x = 0;//this places the mc to the most top left corner of the swf the Strings.y=0; 2009/10/15 Mendelsohn, Michael <michael.mendels...@fmglobal.com> > Hi list... > > I have a 1920x1080 stage in author mode. The swf sits in an html page > aligned absmiddle. I want a movieclip to always stay in the upper left > corner, when the stage is resized, but the code I've got isn't working > perfectly. Anyone have a good routine for this? > > Thanks, > - Michael M. > > > stage.addEventListener(Event.RESIZE, repositionItems); > > private function repositionItems(e:Event):void{ > theStrings.x = ((stage.width - stage.stageWidth)/2); > // the y value doesn't go to the top, even when I subtract > theStrings.height > theStrings.y = ((stage.height - stage.stageHeight)/2); > } > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders