rendered paste body// FUNCTIONS
// SETING _x, _y, _xscale for top bar
function belkatop_setPOS() {
var odstep:Number = 7;
var odst_x:Number = 10;
var odst_y:Number = 10;
setProperty(belkatop_mc.right_mc, _x, Stage_width-belkatop_mc.right_mc._width-odst_x-odst_y);
setProperty(belkatop_mc.title_mc, _x, belkatop_mc.right_mc._x-belkatop_mc.title_mc._width-odstep);
setProperty(belkatop_mc.left_mc, _x, 0);
setProperty(belkatop_mc.midle_mc, _x, belkatop_mc.left_mc._width+odstep);
setProperty(belkatop_mc.midle_mc.resizeable_mc, _xscale, (belkatop_mc._width-(belkatop_mc.def_width-belkatop_mc.def_midle_width))/belkatop_mc.def_midle_width*100);
}
// SETING _x, _y, _xscale for bottom bar
function belkabottom_setPOS() {
var odstep:Number = 5;
var odst_x:Number = 10;
var odst_y:Number = 10;
setProperty(belkabottom_mc, _y, Stage_height-belkabottom_mc._height-odst_y);
setProperty(belkabottom_mc.right_mc, _x, Stage_width-belkabottom_mc.right_mc._width-odst_x-odst_y);
setProperty(belkabottom_mc.mright_mc, _x, belkabottom_mc.right_mc._x-belkabottom_mc.mright_mc._width-odstep);
setProperty(belkabottom_mc.left_mc, _x, 0);
setProperty(belkabottom_mc.mleft_mc, _x, belkabottom_mc.left_mc._x+belkabottom_mc.left_mc._width+odstep);
setProperty(belkabottom_mc.midle_mc, _x, belkatop_mc.mleft_mc._x+belkatop_mc.mleft_mc._width+odstep);
setProperty(belkabottom_mc.midle_mc.resizeable_mc, _xscale, (belkabottom_mc._width-(belkabottom_mc.def_width-belkabottom_mc.def_midle_width))/belkabottom_mc.def_midle_width*100);
}
//---------------------
stop();
Stage.align = "TL"
_global.errormsg = '';
var RES_x:Number = System.capabilities.screenResolutionX;
var RES_y = System.capabilities.screenResolutionY;
var Stage_width:Number = Stage.width;
var Stage_height:Number = Stage.height;
var def_width:Number = Stage.width;
var def_height:Number = Stage.height;
var StageListener:Object = new Object();
// CHECK CONDITIONS
if (RES_x<1024 and RES_y<768) {
_global.errormsg = _global.errormsg+'To low resolution. This web page require 1024/768 \n';
gotoAndStop("error", 1);
break;
}
var StageListener:Object = new Object();
StageListener.onResize = function() {
Stage_width = Stage.width;
Stage_height = Stage.height;
belkatop_setPOS();
belkabottom_setPOS();
};
Stage.addListener(StageListener);
StageListener.onResize.call();