
Код AS1/AS2:
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(this);
mcl.onLoadInit = reSize;
var box:MovieClip = this.images_cont;
var lastPressed:MovieClip = null;
function push_the_button() {
trace(this._name);
lastPressed.enabled = true;
lastPressed.gotoAndPlay("_up");
lastPressed = this;
lastPressed.enabled = false;
mcl.loadClip(this.param + '.swf',box);
}
btm1.onPress = push_the_button;
btm1.param = 'flowers';
btm2.onPress = push_the_button;
btm2.param = 'main';
btm3.onPress = push_the_button;
btm3.param = 'main';
//сразу грузится главная страница //_root.images_cont.loadMovie("main.swf");
mcl.loadClip('main.swf', images_cont);
//центруем информационное поле
Stage.addListener(this);
this.onResize = reSize;
function reSize():Void
{
images_cont._x = (Stage.width - images_cont._width)/2;
btm1._x = (Stage.width - btm1._width) / 2 - 142;
btm2._x = (Stage.width - btm2._width) / 2;
btm3._x = (Stage.width - btm3._width) / 2 + 139;
}