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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to