[flash8]Making XML Photo Gallery full screen

I’ve mixed and matched the xml photi and slideshow galleries, along with adding a slideshow on/off button and another button to hide/show the thumbnail bar.

I’m struggling with 2 things:

  1. Full Screen.

I’ve used the code from here to create a button to go to full screen:http://www.bezzmedia.com/swfspot/tutorials/intermediate/True_Fullscreen_Flash_Mode


//Don't scale the movie when the stage size changes
Stage.scaleMode="noScale";
//Align the stage to the top left
Stage.align = "TL";
//Function to toggle between fullscreen and normal size
//the toggle fullscreen button calls this function when pressed
function toggleFullScreen(){
  //if normal size, go to fullscreen, else go to normal size
  if(Stage["displayState"]=="normal"){
    Stage["displayState"]="fullScreen";
  }else{
    Stage["displayState"]="normal";
  }
}
//Create a listener for each time the Stage is resized
var resizeListener:Object = new Object();
//Called each time the stage is resized
resizeListener.onResize = function () {
  //Move the button to the center of the screen
  toggleFullScreenButton._x=Stage.width/2;
  toggleFullScreenButton._y=Stage.height/2;
}
//Add the listener to Stage
Stage.addListener(resizeListener);

Now toggleFullScreenButton._x etc are applied to the (full screen) button to center it, but obviously I want to center everything. This really just centers a movie clip that is the button.
Any ideas on the way forward? I could try just generating my SWF and then loading it in a new MC and centering that (although I’m not 100% certain how to do it). I’d prefer to do it in the original file if possible.

  1. Borders. Try as I might I can’t get the borders tutorial to mix into this one. Any good links greatly appreciated.