# Positioning content trouble

**URL:** <https://forum.kirupa.com/t/positioning-content-trouble/244085>\
**Category:** Uncategorized\
**Created:** [November 14, 2007, 5:45am UTC](https://forum.kirupa.com/t/positioning-content-trouble/244085 "2007-11-14T05:45:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas\_E](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Andreas\_E](https://forum.kirupa.com/u/Andreas_E)\
**Post date:** [November 14, 2007, 5:45am UTC](https://forum.kirupa.com/t/positioning-content-trouble/244085/1 "2007-11-14T05:45:58Z")

</div>

Hi and thanks for a great forum!

Im using this code to position my logo on the first frame and it works:

Stage.scaleMode = “noScale”;  
Stage.align = “TL”;  
var stageListener:Object = new Object ();  
stageListener.onResize = positionContent;  
Stage.addListener(stageListener);  
function positionContent():Void {  
mcLogo.\_x = Stage.width / 2 - mcLogo.\_width / 2;  
mcLogo.\_y = Stage.height / 2 - mcLogo.\_height / 2;  
}  
positionContent();

But if i want to position more movieclips on lets say frame 3, i thought i could just ad them to the function i have on the first frame like:

Stage.scaleMode = “noScale”;  
Stage.align = “TL”;  
var stageListener:Object = new Object ();  
stageListener.onResize = positionContent;  
Stage.addListener(stageListener);  
function positionContent():Void {  
mcLogo.\_x = Stage.width / 2 - mcLogo.\_width / 2;  
mcLogo.\_y = Stage.height / 2 - mcLogo.\_height / 2;  
mcNew.\_x = Stage.width / 2 - mcNew.\_width / 2;  
mcNew.\_y = Stage.height / 2 - mcNew.\_height / 2;

}  
positionContent();

But when i put the new mc on frame 3, it doesnt position like i wrote in the function on frame 1. It just stays where i put it on the stage.

Any idea what im doing wrong?

Cheers!

Andreas
