I am bulding my first AS3 website...need help putting this together
I am using the following actionscript to have my movie adapted to the browser window

Actionscript Code:
var myStage:Stage = this.stage;
myStage.scaleMode = StageScaleMode.NO_SCALE;
myStage.align = StageAlign.TOP_LEFT;

function initialDisplay(event:Event):void {

    var swfWidth:int = myStage.stageWidth;
    var swfHeight:int = myStage.stageHeight;
   
    var footerYPos:Number = swfHeight - footer.height;
   
    var frameYPos:Number = swfHeight - frame.height;
    var frameXPos:Number = swfWidth - frame.width;
   
    frame.width = swfWidth;
    frame.height = swfHeight;  
   
    frame.y = frameYPos / 2;
    frame.x = frameXPos / 2;
   
    menuBarBG.width = swfWidth;
    footer.width = swfWidth;
    footer.y = footerYPos;
   
}
addEventListener(Event.ENTER_FRAME, initialDisplay);

Works fine
Then I created a menu movie clip "textmenu" and centered it using this code

Actionscript Code:
stage.addEventListener(Event.RESIZE,center);

function center(e:Event=null) {
 textmenu.x = (stage.stageWidth-textmenu.width)/2;
}
center(null);

For each button movie clip inside my menu I am using this code to move on the time line and load external swf

Actionscript Code:
profile_btn.addEventListener(MouseEvent.CLICK, clickProfile);
function clickProfile (event:Event):void{
gotoAndPlay("profile");
}

about_btn.addEventListener(MouseEvent.CLICK, clickAbout);
function clickAbout (event:Event):void{
gotoAndPlay("about");
}

process_btn.addEventListener(MouseEvent.CLICK, clickProcess);
function clickProcess (event:Event):void{
gotoAndPlay("process");
}

portfolio_btn.addEventListener(MouseEvent.CLICK, clickPortfolio);
function clickPortfolio (event:Event):void{
gotoAndPlay("portfolio");
}

blog_btn.addEventListener(MouseEvent.CLICK, clickBlog);
function clickBlog (event:Event):void{
gotoAndPlay("blog");
}

contact_btn.addEventListener(MouseEvent.CLICK, clickContact);
function clickContact (event:Event):void{
gotoAndPlay("contact");
}

This code is on each labelled frame on the timeline and should load the external swf:

Actionscript Code:
stop();
var my_Loader:Loader = new Loader();
addChild(my_Loader);

var my_url:URLRequest=new URLRequest("profile.swf");
my_Loader.load(my_url);

my_Loader.x = 90;
my_Loader.y = 135;

I added numbers to my_Loader and my_url to create the code for the other frames: es. my_Loader2, my_url2, my_Loader3, my_url3 etc):
This is the code for the second frame "about"

Actionscript Code:
stop();
var my_Loader2:Loader = new Loader();
addChild(my_Loader2);

var my_url2:URLRequest=new URLRequest("about.swf");
my_Loader2.load(my_url);

my_Loader2.x = 130;
my_Loader2.y = 135;

PROBLEMS:

When I click on the first button, profile, the swf loads but the entire top menu moves on the left...I dont know why it is happening...maybe it has to do with this code I am using in the profile.swf?

Actionscript Code:
import fl.transitions.*;
import fl.transitions.easing.*;

var myTM:TransitionManager = new TransitionManager(panel_mc);
myTM.startTransition({type:Fly, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:2});

also the loaded swf profile is not full browser as the main movie...it is just the size of the stage...how do I make it so it will adapt to the broswer size too?

when I click on the second button of my top menu "about" even if the swf is available in the same folder, nothing happens...should I use a different code on the labelled frame than the one I posted?

Please help me out to put some order in this code!