Код AS1/AS2:
Stage.addListener(stageL);
footer_mc.rightSide.photos.onRollOver = function () {
footer_mc.rightSide.photos.text_mc.gotoAndStop(2);
};
footer_mc.rightSide.photos.onRollOut = function () {
footer_mc.rightSide.photos.text_mc.gotoAndStop(1);
};
footer_mc.rightSide.photos.onRelease = function () {
if (photos == 0) {
photos = 1;
MoveNav = new mx.transitions.Tween(thumbHolder, "_y", mx.transitions.easing.Strong.easeOut, thumbHolder._y, Stage.height - 134, 1, true);
footer_mc.rightSide.photos.arrow_mc.gotoAndPlay(2);
} else {
photos = 0;
MoveNav = new mx.transitions.Tween(thumbHolder, "_y", mx.transitions.easing.Strong.easeOut, thumbHolder._y, Stage.height - 30, 1, true);
footer_mc.rightSide.photos.arrow_mc.gotoAndPlay(11);
}
};
footer_mc.rightSide.slideshow_mc.onRollOver = function () {
footer_mc.rightSide.slideshow_mc.text_mc.gotoAndStop(2);
};
footer_mc.rightSide.slideshow_mc.onRollOut = function () {
footer_mc.rightSide.slideshow_mc.text_mc.gotoAndStop(1);
};
footer_mc.rightSide.slideshow_mc.onRelease = function () {
if (slideshow == "off") {
delay = _global.setTimeout(nextImgDelay, delay_img * 1000);
footer_mc.slideshowAnim._alpha = 100;
MoveNavWidth = new mx.transitions.Tween(footer_mc.slideshowAnim, "_width", mx.transitions.easing.Regular.easeOut, 0, Stage.width, delay_img, true);
MoveNavWidth.onMotionFinished = function () {
footer_mc.slideshowAnim._alpha = 0;
};
footer_mc.rightSide.slideshow_mc.pause_mc._visible = true;
footer_mc.rightSide.slideshow_mc.play_mc._visible = false;
slideshow = "on";
} else {
clearTimeout(delay);
MoveNavWidth.stop();
footer_mc.slideshowAnim._alpha = 0;
footer_mc.rightSide.slideshow_mc.pause_mc._visible = false;
footer_mc.rightSide.slideshow_mc.play_mc._visible = true;
slideshow = "off";
}
};
footer_mc.rightSide.fullscreen_mc.onRollOver = function () {
footer_mc.rightSide.fullscreen_mc.text_mc.gotoAndStop(2);
};
footer_mc.rightSide.fullscreen_mc.onRollOut = function () {
footer_mc.rightSide.fullscreen_mc.text_mc.gotoAndStop(1);
};
footer_mc.rightSide.fullscreen_mc.onRelease = function () {
toggleFullScreen();
};
footer_mc.albums_mc.onRollOver = function () {
footer_mc.albums_mc.text_mc.gotoAndStop(2);
};
footer_mc.albums_mc.onRollOut = function () {
footer_mc.albums_mc.text_mc.gotoAndStop(1);
};
footer_mc.albums_mc.onRelease = function () {
if (albums == 0) {
footer_mc.albums_mc.arrow_mc.gotoAndPlay(2);
MoveMask = new mx.transitions.Tween(footer_mc.mask_mc, "_y", mx.transitions.easing.Regular.easeOut, footer_mc.mask_mc._y, -footer_mc.mask_mc._height, 0.5, true);
albums = 1;
footer_mc.gallery_off._visible = true;
} else {
footer_mc.albums_mc.arrow_mc.gotoAndPlay(11);
MoveMask = new mx.transitions.Tween(footer_mc.mask_mc, "_y", mx.transitions.easing.Regular.easeOut, footer_mc.mask_mc._y, 0, 0.5, true);
albums = 0;
footer_mc.gallery_off._visible = false;
}
};
footer_mc.gallery_off.onRollOver = function () {
footer_mc.albums_mc.arrow_mc.gotoAndPlay(11);
MoveMask = new mx.transitions.Tween(footer_mc.mask_mc, "_y", mx.transitions.easing.Regular.easeOut, footer_mc.mask_mc._y, 0, 0.5, true);
albums = 0;
footer_mc.gallery_off._visible = false;
};
BigImageHolder.left_arrow.gotoAndStop(3);
BigImageHolder.left_arrow["button"].enabled = false;
BigImageHolder.right_arrow["button"].onRollOver = function () {
BigImageHolder.right_arrow.gotoAndStop(2);
};
BigImageHolder.right_arrow["button"].onRollOut = function () {
BigImageHolder.right_arrow.gotoAndStop(1);
};
BigImageHolder.right_arrow["button"].onRelease = function () {
nextImg();
};
BigImageHolder.left_arrow["button"].onRollOver = function () {
BigImageHolder.left_arrow.gotoAndStop(2);
};
BigImageHolder.left_arrow["button"].onRollOut = function () {
BigImageHolder.left_arrow.gotoAndStop(1);
};
BigImageHolder.left_arrow["button"].onRelease = function () {
prevImg();
};