There are 2 external AS files positioning the content in the FLA.
// DO NOT EDIT THIS FILE
//FS_Script is Copyright 2008 Eoin Griffin
//This script is free. I'm curious to see if/how it will be used.
//Send feedback to
griffi...@gmail.com and let me know how you find
it.
//
//The editable actionscript is all in
edit_me.as
resizer();
Stage.align=BR;
Stage.scaleMode = "noScale"
var myListener:Object = new Object();
myListener.onResize = function(){
resizer();
}
Stage.addListener(myListener);
function fs_posit(locA,locB,target,offsetA,offsetB){
fs_top=-(Stage.height-originalheight)/2;
fs_right=(Stage.width-originalwidth)/2+originalwidth;
fs_bottom=(Stage.height-originalheight)/2+originalheight;
fs_left=-(Stage.width-originalwidth)/2;
if(offsetA.substr(offsetA.length-1)=="%"){
offsetA=(Stage.width/100)*offsetA.substr(0,offsetA.length-1);
}else{offsetA=Number(offsetA);}
if(offsetB.substr(offsetB.length-1)=="%"){
offsetB=(Stage.width/100)*offsetB.substr(0,offsetB.length-1);
}offsetB=Number(offsetB);
if(!offsetA)offsetA=0;
if(!offsetB)offsetB=0;
switch(locA){
case "top": target._y=fs_top + offsetB;
break;
case "center": target._y=originalheight/2 + offsetB;
break;
case "bottom": target._y=fs_bottom + offsetB;
}
switch(locB){
case "left": target._x=fs_left + offsetA;
break;
case "center": target._x=originalwidth/2 + offsetA;
break;
case "right": target._x=fs_right + offsetA;
}
}
and this:
//FS_Script is Copyright 2008 Eoin Griffin
//This script is free. I'm curious to see if/how it will be used.
//Send feedback to
griffi...@gmail.com and let me know how you find
it.
//
//It's important to set the initial dimensions of your flash movie
here (stage width and height)
//to whatever dimensions you're working in.
originalheight=900;
originalwidth=1200;
function resizer(){
//The fs_posit function has 5 parameters: Vertical position (top,
center or bottom);
//horizontal position (left, center or right);
//the target. That's the location/instance name of the target you wish
to position;
//The final 2 parameters are offset value from the desired position.
//In the first example below. The right arrow is given a 10px offset
to the left and
//a 60px offset downwards. Coordinates in actionscript start from an
origin of 0,0 in the top left.
//
//Only the first 3 parameters are required. The rest are optional.
fs_posit("center","right",righta,"-10%","60");
fs_posit("top","center",upa);
fs_posit("center","left",lefta);
fs_posit("bottom","center", downa);
fs_posit("top","left",topleft);
//set any variables or functions here that you want to have affected
by the changing resolution.
//The following variables are samples. Delete them.
testvar=Stage.width;
testvar2=Stage.height;
}