Показать сообщение отдельно
Старый 28.08.2011, 02:19
ilikali вне форума Посмотреть профиль Отправить личное сообщение для ilikali Найти все сообщения от ilikali
  № 4  
ilikali

Регистрация: Mar 2010
Сообщений: 34
Код AS1/AS2:
 nextImg = function () {
        BigImageHolder.left_arrow.gotoAndStop(1);
        BigImageHolder.left_arrow["button"].enabled = true;
        if (p == (_global.total - 2)) {
            BigImageHolder.right_arrow.gotoAndStop(3);
            BigImageHolder.right_arrow["button"].enabled = false;
            p = _global.total - 1;
            BigImageHolder._alpha = 0;
            BigImageHolder._visible = false;
            BigImageHolder.myImg.holder.removeMovieClip();
            BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
            loadBitmapSmoothed(image[p], BigImageHolder.myImg.holder);
            BigImageHolder.description_mc.description_txt.htmlText = _global.description[p];
            BigImageHolder.description_mc.description_txt.autoSize = true;
            BigImageHolder.num_mc.num_txt.text = ((((p + 1) + "/") + _global.total) + "     Album: ") + Title[GL];
            BigImageHolder.num_mc.title_txt.text = title_img[p];
            preloader_mc.gotoAndPlay(2);
        } else {
            p++;
            BigImageHolder._alpha = 0;
            BigImageHolder._visible = false;
            BigImageHolder.myImg.holder.removeMovieClip();
            BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
            loadBitmapSmoothed(image[p], BigImageHolder.myImg.holder);
            BigImageHolder.description_mc.description_txt.htmlText = _global.description[p];
            BigImageHolder.description_mc.description_txt.autoSize = true;
            BigImageHolder.num_mc.num_txt.text = ((((p + 1) + "/") + _global.total) + "     Album: ") + Title[GL];
            BigImageHolder.num_mc.title_txt.text = title_img[p];
            preloader_mc.gotoAndPlay(2);
        }
        thumbHolder.holder["thumb" + p]["button"].enabled = false;
        thumbHolder.holder["thumb" + p].grey_mc._alpha = 0;
        thumbHolder.holder["thumb" + p].border_mc._alpha = 100;
        thumbHolder.holder["thumb" + lastThumb]["button"].enabled = true;
        thumbHolder.holder["thumb" + lastThumb].grey_mc._alpha = 60;
        thumbHolder.holder["thumb" + lastThumb].border_mc._alpha = 0;
        lastThumb = p;
    };
    prevImg = function () {
        BigImageHolder.right_arrow.gotoAndStop(1);
        BigImageHolder.right_arrow["button"].enabled = true;
        if (p == 1) {
            BigImageHolder.left_arrow.gotoAndStop(3);
            BigImageHolder.left_arrow["button"].enabled = false;
            p = 0;
            BigImageHolder._alpha = 0;
            BigImageHolder._visible = false;
            BigImageHolder.myImg.holder.removeMovieClip();
            BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
            loadBitmapSmoothed(image[p], BigImageHolder.myImg.holder);
            BigImageHolder.description_mc.description_txt.htmlText = _global.description[p];
            BigImageHolder.description_mc.description_txt.autoSize = true;
            BigImageHolder.num_mc.num_txt.text = ((((p + 1) + "/") + _global.total) + "     Album: ") + Title[GL];
            BigImageHolder.num_mc.title_txt.text = title_img[p];
            preloader_mc.gotoAndPlay(2);
        } else {
            p--;
            BigImageHolder._alpha = 0;
            BigImageHolder._visible = false;
            BigImageHolder.myImg.holder.removeMovieClip();
            BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
            loadBitmapSmoothed(image[p], BigImageHolder.myImg.holder);
            BigImageHolder.description_mc.description_txt.htmlText = _global.description[p];
            BigImageHolder.description_mc.description_txt.autoSize = true;
            BigImageHolder.num_mc.num_txt.text = ((((p + 1) + "/") + _global.total) + "     Album: ") + Title[GL];
            BigImageHolder.num_mc.title_txt.text = title_img[p];
            preloader_mc.gotoAndPlay(2);
        }
        thumbHolder.holder["thumb" + p]["button"].enabled = false;
        thumbHolder.holder["thumb" + p].grey_mc._alpha = 0;
        thumbHolder.holder["thumb" + p].border_mc._alpha = 100;
        thumbHolder.holder["thumb" + lastThumb]["button"].enabled = true;
        thumbHolder.holder["thumb" + lastThumb].grey_mc._alpha = 60;
        thumbHolder.holder["thumb" + lastThumb].border_mc._alpha = 0;
        lastThumb = p;
    };
    nextImgDelay = function () {
        BigImageHolder.left_arrow.gotoAndStop(1);
        BigImageHolder.left_arrow["button"].enabled = true;
        thumbHolder.holder["thumb" + ID].toolTip._alpha = 0;
        delete thumbHolder.holder["thumb" + ID].toolTip.onEnterFrame;
        if (p < (_global.total - 1)) {
            p++;
            if (p == (_global.total - 1)) {
                BigImageHolder.right_arrow.gotoAndStop(3);
                BigImageHolder.right_arrow["button"].enabled = false;
            } else {
                BigImageHolder.right_arrow.gotoAndStop(1);
                BigImageHolder.right_arrow["button"].enabled = true;
            }
            BigImageHolder._alpha = 0;
            BigImageHolder._visible = false;
            BigImageHolder.myImg.holder.removeMovieClip();
            BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
            loadBitmapSmoothed(image[p], BigImageHolder.myImg.holder);
            BigImageHolder.description_mc.description_txt.htmlText = _global.description[p];
            BigImageHolder.description_mc.description_txt.autoSize = true;
            BigImageHolder.num_mc.num_txt.text = ((((p + 1) + "/") + _global.total) + "     Album: ") + Title[GL];
            BigImageHolder.num_mc.title_txt.text = title_img[p];
            preloader_mc.gotoAndPlay(2);
        } else {
            BigImageHolder.left_arrow.gotoAndStop(3);
            BigImageHolder.left_arrow["button"].enabled = false;
            BigImageHolder.right_arrow.gotoAndStop(1);
            BigImageHolder.right_arrow["button"].enabled = true;
            p = 0;
            BigImageHolder._alpha = 0;
            BigImageHolder._visible = false;
            BigImageHolder.myImg.holder.removeMovieClip();
            BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
            loadBitmapSmoothed(image[p], BigImageHolder.myImg.holder);
            BigImageHolder.description_mc.description_txt.htmlText = _global.description[p];
            BigImageHolder.description_mc.description_txt.autoSize = true;
            BigImageHolder.num_mc.num_txt.text = ((((p + 1) + "/") + _global.total) + "     Album: ") + Title[GL];
            BigImageHolder.num_mc.title_txt.text = title_img[p];
            preloader_mc.gotoAndPlay(2);
        }
        thumbHolder.holder["thumb" + p]["button"].enabled = false;
        thumbHolder.holder["thumb" + p].grey_mc._alpha = 0;
        thumbHolder.holder["thumb" + p].border_mc._alpha = 100;
        thumbHolder.holder["thumb" + lastThumb]["button"].enabled = true;
        thumbHolder.holder["thumb" + lastThumb].grey_mc._alpha = 60;
        thumbHolder.holder["thumb" + lastThumb].border_mc._alpha = 0;
        lastThumb = p;
    };