Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Поиск рулит! Сообщения за день Все разделы прочитаны
 

Вернуться   Форум Flasher.ru > Flash > ActionScript 1.0/2.0

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему Закрытая тема
Старый 28.08.2011, 02:17
ilikali вне форума Посмотреть профиль Отправить личное сообщение для ilikali Найти все сообщения от ilikali
  № 1  
ilikali

Регистрация: Mar 2010
Сообщений: 34
По умолчанию Загруженный SWF файл не проигрывается (XML)

Есть слайдшоу. В него грузиться XML файл. Пытался модифицировать. Создал SWF файл с анимацией. Но при загрузке SWF файл остается статичным. Анимация не работает.

Код AS1/AS2:
     function loadXML(_arg3) {
        if (_arg3) {
            xmlNode = this.firstChild;
            image = [];
            thumb = [];
            title_img = [];
            _global.description = [];
            _global.total = xmlNode.childNodes.length;
            i = 0;
            while (i < _global.total) {
                delay_img = xmlNode.attributes.delay;
                slideshow = xmlNode.attributes.slideshow;
                if (slideshow == "on") {
                    footer_mc.rightSide.slideshow_mc.play_mc._visible = false;
                    footer_mc.rightSide.slideshow_mc.pause_mc._visible = true;
                } else {
                    footer_mc.rightSide.slideshow_mc.pause_mc._visible = false;
                    footer_mc.rightSide.slideshow_mc.play_mc._visible = true;
                }
                image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                thumb[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                title_img[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                _global.description[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                BigImageHolder.description_mc.description_txt.htmlText = _global.description[0];
                BigImageHolder.description_mc.description_txt.autoSize = true;
                thumbHolder.holder.attachMovie("thumb", "thumb" + i, i + 999);
                thumbHolder.holder["thumb" + i].id = i;
                thumbHolder.holder["thumb" + i]._y = 0;
                thumbHolder.holder["thumb" + i]._x = Math.round(5 + (i * 136));
                thumbHolder.holder["thumb" + i].holder.loadMovie(thumb[i], 1);
                thumbHolder.holder.thumb0["button"].enabled = false;
                thumbHolder.holder.thumb0.grey_mc._alpha = 0;
                thumbHolder.holder.thumb0.border_mc._alpha = 100;
                thumbHolder.holder["thumb" + i].toolTip.title_txt.autoSize = true;
                thumbHolder.holder["thumb" + i].toolTip.title_txt.text = title_img[i];
                thumbHolder.holder["thumb" + i].toolTip.bkg_mc._width = thumbHolder.holder["thumb" + i].toolTip.title_txt.textWidth + 20;
                thumbHolder.holder["thumb" + i].toolTip._alpha = 0;
                thumbHolder.holder["thumb" + i]["button"].onRollOver = function () {
                    ID = this._parent.id;
                    this._parent.swapDepths(thumbHolder.holder.getNextHighestDepth());
                    thumbHolder.holder["thumb" + ID].grey_mc._alpha = 0;
                    thumbHolder.holder["thumb" + ID].border_mc._alpha = 100;
                    thumbHolder.holder["thumb" + ID].toolTip.onEnterFrame = function () {
                        this._parent.toolTip._x = this._parent._xmouse;
                        this._parent.toolTip._y = this._parent._ymouse - 20;
                        thumbHolder.holder["thumb" + ID].toolTip._alpha = 100;
                    };
                };
                thumbHolder.holder["thumb" + i]["button"].onRollOut = function () {
                    ID = this._parent.id;
                    thumbHolder.holder["thumb" + ID].grey_mc._alpha = 60;
                    thumbHolder.holder["thumb" + ID].border_mc._alpha = 0;
                    thumbHolder.holder["thumb" + ID].toolTip._alpha = 0;
                    delete thumbHolder.holder["thumb" + ID].toolTip.onEnterFrame;
                };
                thumbHolder.holder["thumb" + i]["button"].onRelease = function () {
                    thumbHolder.holder["thumb" + ID].toolTip._alpha = 0;
                    delete thumbHolder.holder["thumb" + ID].toolTip.onEnterFrame;
                    BigImageHolder.left_arrow.gotoAndStop(1);
                    BigImageHolder.left_arrow["button"].enabled = true;
                    BigImageHolder.right_arrow.gotoAndStop(1);
                    BigImageHolder.right_arrow["button"].enabled = true;
                    if (this._parent.id == 0) {
                        BigImageHolder.left_arrow.gotoAndStop(3);
                        BigImageHolder.left_arrow["button"].enabled = false;
                    }
                    if (this._parent.id == (_global.total - 1)) {
                        BigImageHolder.right_arrow.gotoAndStop(3);
                        BigImageHolder.right_arrow["button"].enabled = false;
                    }
                    ID = this._parent.id;
                    p = ID;
                    BigImageHolder._alpha = 0;
                    BigImageHolder._visible = false;
                    BigImageHolder.myImg.holder.removeMovieClip();
                    BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
                    loadBitmapSmoothed(image[ID], BigImageHolder.myImg.holder);
                    BigImageHolder.description_mc.description_txt.htmlText = _global.description[ID];
                    BigImageHolder.description_mc.description_txt.autoSize = true;
                    BigImageHolder.num_mc.num_txt.text = ((((p + 1) + "/") + _global.total) + "     Категория: ") + Title[GL];
                    BigImageHolder.num_mc.title_txt.text = title_img[ID];
                    preloader_mc.gotoAndPlay(2);
                    thumbHolder.holder["thumb" + ID]["button"].enabled = false;
                    thumbHolder.holder["thumb" + ID].grey_mc._alpha = 0;
                    thumbHolder.holder["thumb" + ID].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 = ID;
                };
                BigImageHolder.num_mc.num_txt.text = (("1/" + _global.total) + "     Категория: ") + Title[GL];
                BigImageHolder.num_mc.title_txt.text = title_img[0];
                thumbHolder.holder._x = Math.round((Stage.width / 2) - (thumbHolder.holder._width / 2));
                i++;
            }
            BigImageHolder.myImg.holder.removeMovieClip();
            BigImageHolder.myImg.createEmptyMovieClip("holder", this.getNextHighestDepth());
            loadBitmapSmoothed(image[0], BigImageHolder.myImg.holder);
            preloader_mc.gotoAndPlay(2);
            slidingThumbs();
        } else {
        }
    }
Уверен что для опытного глаза работы на 2 минуты. Помогите пожалуйста. Заранее всем спасибо

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

Регистрация: Mar 2010
Сообщений: 34
Код AS1/AS2:
function loadBitmapSmoothed(_arg7, _arg5) {
        clearTimeout(delay);
        MoveNavWidth.stop();
        footer_mc.slideshowAnim._alpha = 0;
        var _local6 = _arg5.createEmptyMovieClip("bmc", _arg5.getNextHighestDepth());
        var _local2 = new Object();
        _local2.tmc = _arg5;
        _local2.onLoadInit = function (_arg2) {
            _arg2._visible = false;
            var _local3 = new flash.display.BitmapData(_arg2._width, _arg2._height, true);
            this.tmc.attachBitmap(_local3, this.tmc.getNextHighestDepth(), "auto", true);
            _local3.draw(_arg2);
            picturePosition();
        };
        _local2.onLoadComplete = function () {
            fadeInImage();
        };
        var _local4 = new MovieClipLoader();
        _local4.addListener(_local2);
        _local4.loadClip(_arg7, _local6);
    }
    function fadeInImage() {
        BigImageHolder._visible = true;
        MoveNav = new mx.transitions.Tween(BigImageHolder, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true);
        if (slideshow == "on") {
            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;
            };
        }
    }
    function toStage() {
        thumbHolder.thumbsText._x = Stage.width / 2;
        thumbHolder.bkg_mc._width = Stage.width;
        if (photos == 1) {
            thumbHolder._y = Stage.height - 134;
        } else {
            thumbHolder._y = Stage.height - 30;
        }
        stage_x = Stage.width;
        preloader_mc._x = Stage.width / 2;
        preloader_mc._y = Stage.height / 2;
        footer_mc._y = Stage.height - 30;
        footer_mc.rightSide._x = Stage.width - 407;
        footer_mc.bkg_mc._width = Stage.width;
        BigImageHolder._y = Math.round((Stage.height / 2) - (BigImageHolder.myImg.holder._height / 2));
        BigImageHolder._x = Math.round((Stage.width / 2) - (BigImageHolder.myImg.holder._width / 2));
    }
    function toggleFullScreen() {
        if (Stage["displayState"] == "normal") {
            Stage["displayState"] = "fullScreen";
        } else {
            Stage["displayState"] = "normal";
        }
    }
    Stage.scaleMode = "noScale";
    Stage.align = "TL";
    var difX;
    var newX;
    var speed = 0.2;
    var p = 0;
    var lastCategory = 0;
    var thisButt = 0;
    var photos = 0;
    var slideshow = "on";
    var albums = 0;
    var GL = 0;
    var lastThumb = 0;
    footer_mc.bkg_mc.useHandCursor = false;
    footer_mc.slideshowAnim._alpha = 0;
    footer_mc.gallery_off._visible = false;
    var imgLoader = new MovieClipLoader();
    var imgListener = new Object();
    imgLoader.addListener(imgListener);
    category = new XML();
    category.ignoreWhite = true;
    category.onLoad = function (_arg4) {
        if (_arg4) {
            xmlNode = this.firstChild;
            Title = [];
            _global.link = [];
            total = xmlNode.childNodes.length;
            var _local3 = 0;
            while (_local3 < total) {
                Title[_local3] = xmlNode.childNodes[_local3].attributes.name;
                _global.link[_local3] = xmlNode.childNodes[_local3].attributes.url;
                footer_mc.galleryHolder.attachMovie("galleryItem", "item" + _local3, _local3 + 999);
                footer_mc.galleryHolder["item" + _local3].title_txt.text = Title[_local3];
                footer_mc.galleryHolder["item" + _local3].id = _local3;
                footer_mc.galleryHolder["item" + _local3]._x = 0;
                footer_mc.galleryHolder["item" + _local3]._y = (-_local3) * 23;
                footer_mc.galleryHolder.item0.title_txt._alpha = 50;
                footer_mc.galleryHolder.item0.button_bttn.enabled = false;
                footer_mc.mask_mc._height = 25 * total;
                footer_mc.gallery_off._height = (25 * total) + 50;
                footer_mc.gallery_off._y = (-footer_mc.mask_mc._height) - 25;
                footer_mc.galleryHolder["item" + _local3].button_bttn.onRollOver = function () {
                    footer_mc.galleryHolder["item" + [this._parent.id]].title_txt._alpha = 50;
                };
                footer_mc.galleryHolder["item" + _local3].button_bttn.onRollOut = function () {
                    footer_mc.galleryHolder["item" + [this._parent.id]].title_txt._alpha = 100;
                };
                footer_mc.galleryHolder["item" + _local3].button_bttn.onRelease = function () {
                    p = 0;
                    GL = this._parent.id;
                    lastThumb = 0;
                    BigImageHolder._alpha = 0;
                    BigImageHolder._visible = false;
                    BigImageHolder.left_arrow.gotoAndStop(3);
                    BigImageHolder.left_arrow["button"].enabled = false;
                    BigImageHolder.right_arrow.gotoAndStop(1);
                    BigImageHolder.right_arrow["button"].enabled = true;
                    delete thumbHolder.onEnterFrame;
                    var _local3 = 0;
                    while (_local3 < _global.total) {
                        removeMovieClip(thumbHolder.holder["thumb" + _local3]);
                        _local3++;
                    }
                    xmlData.load(_global.link[this._parent.id]);
                    lastCategory = this._parent.id;
                    footer_mc.galleryHolder["item" + thisButt].title_txt._alpha = 100;
                    footer_mc.galleryHolder["item" + thisButt].button_bttn.enabled = true;
                    thisButt = this._parent.id;
                    footer_mc.galleryHolder["item" + thisButt].title_txt._alpha = 50;
                    footer_mc.galleryHolder["item" + thisButt].button_bttn.enabled = false;
                };
                xmlData.load(_global.link[0]);
                _local3++;
            }
        }
    };
    category.load("imageGallery/_galleries.xml");
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    picturePosition = function () {
        BigImageHolder._y = Math.round((Stage.height / 2) - (BigImageHolder.myImg.holder._height / 2));
        BigImageHolder._x = Math.round((Stage.width / 2) - (BigImageHolder.myImg.holder._width / 2));
        BigImageHolder.bkg_mc._width = Math.round(BigImageHolder.myImg.holder._width + 20);
        BigImageHolder.bkg_mc._height = Math.round(BigImageHolder.myImg.holder._height + 20);
        BigImageHolder.bkg_mc._x = -10;
        BigImageHolder.bkg_mc._y = -10;
        BigImageHolder.right_arrow._x = Math.round(BigImageHolder.myImg.holder._width + 20);
        BigImageHolder.right_arrow._y = Math.round(BigImageHolder.myImg.holder._height / 2);
        BigImageHolder.left_arrow._x = -20;
        BigImageHolder.left_arrow._y = Math.round(BigImageHolder.myImg.holder._height / 2);
        BigImageHolder.description_mc.description_txt._width = BigImageHolder.myImg.holder._width - 20;
        BigImageHolder.description_mc.bkg_mc._width = Math.round(BigImageHolder.myImg.holder._width);
        BigImageHolder.description_mc.bkg_mc._height = BigImageHolder.description_mc.description_txt.textHeight + 15;
        BigImageHolder.description_mc.mask_mc._width = Math.round(BigImageHolder.myImg.holder._width);
        BigImageHolder.description_mc.mask_mc._height = BigImageHolder.description_mc.description_txt.textHeight + 15;
        BigImageHolder.description_mc._x = 0;
        BigImageHolder.description_mc._y = (BigImageHolder.myImg.holder._height - BigImageHolder.description_mc.description_txt.textHeight) - 15;
        BigImageHolder.num_mc._x = 0;
        BigImageHolder.num_mc._y = 0;
        BigImageHolder.num_mc.bkg_mc._width = Math.round(BigImageHolder.myImg.holder._width);
    };
    BigImageHolder.myImg.onRollOver = function () {
        BigImageHolder.myImg.useHandCursor = false;
        MoveNav = new mx.transitions.Tween(BigImageHolder.description_mc, "_alpha", mx.transitions.easing.Strong.easeOut, BigImageHolder.description_mc._alpha, 100, 1, true);
        MoveNav = new mx.transitions.Tween(BigImageHolder.num_mc, "_alpha", mx.transitions.easing.Strong.easeOut, BigImageHolder.num_mc._alpha, 100, 1, true);
    };
    BigImageHolder.myImg.onRollOut = function () {
        MoveNav = new mx.transitions.Tween(BigImageHolder.description_mc, "_alpha", mx.transitions.easing.Strong.easeOut, BigImageHolder.description_mc._alpha, 0, 1, true);
        MoveNav = new mx.transitions.Tween(BigImageHolder.num_mc, "_alpha", mx.transitions.easing.Strong.easeOut, BigImageHolder.num_mc._alpha, 0, 1, true);
    };
    slidingThumbs = function () {
        var thumbWidth = (thumbHolder.holder._width + 20);
        if (thumbWidth > Stage.width) {
            thumbHolder.onEnterFrame = function () {
                mouse_x = this._xmouse;
                difx = (-mouse_x) * ((thumbWidth / stage_x) - 1);
                newx = (difx - thumbHolder.holder._x) * speed;
                thumbHolder.holder._x = thumbHolder.holder._x + Math.round(newx);
            };
        } else {
            thumbHolder.holder._x = Math.round((Stage.width / 2) - (thumbHolder.holder._width / 2)) - 5;
            delete thumbHolder.onEnterFrame;
        }
    };
    toStage();
    var stageL = new Object();
    stageL.onResize = function () {
        toStage();
    };

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

Регистрация: Mar 2010
Сообщений: 34
Код 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();
    };

Старый 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;
    };

Старый 28.08.2011, 02:43
NikolyA вне форума Посмотреть профиль Отправить личное сообщение для NikolyA Найти все сообщения от NikolyA
  № 5  
NikolyA
 
Аватар для NikolyA

Регистрация: Dec 2006
Сообщений: 1,764
декомпил то зачем?
__________________
а за окном атлантический океан!

Старый 28.08.2011, 11:11
Котяра вне форума Посмотреть профиль Отправить личное сообщение для Котяра Посетить домашнюю страницу Котяра Найти все сообщения от Котяра
  № 6  
Котяра
буду краток
 
Аватар для Котяра

модератор форума
Регистрация: Sep 2003
Адрес: Ближайшее Замкадье
Сообщений: 3,110
Записей в блоге: 28
Отправить сообщение для Котяра с помощью ICQ Отправить сообщение для Котяра с помощью Skype™
Цитата:
Сообщение от ilikali Посмотреть сообщение
Уверен что для опытного глаза работы на 2 минуты. Помогите пожалуйста. Заранее всем спасибо
Опытный разраб на такой ужас даже смотреть не будет. Затребует денег и перепишет заново.
Ковыряться в "этом" не будет.

Цитата:
декомпил то зачем?
Нет здесь декомпила - просто чудовищный код.
__________________
Отряд Котовскага

Старый 28.08.2011, 11:18
mooncar вне форума Посмотреть профиль Отправить личное сообщение для mooncar Найти все сообщения от mooncar
  № 7  
mooncar
Модрон-ветеринар
 
Аватар для mooncar

администратор
Регистрация: May 2009
Адрес: г.Казань
Сообщений: 7,357
Отправить сообщение для mooncar с помощью ICQ Отправить сообщение для mooncar с помощью Skype™
ИМХО, есть или была декомпиляция.
Код AS1/AS2:
 var _local4
обычно для локальных переменных в функциях декомпилятор втыкает.
Но код действительно, громоздкий и плохо организован, и "на глаз" тут трудно что-то сказать.
__________________
Идите первым!

Старый 28.08.2011, 11:21
ilikali вне форума Посмотреть профиль Отправить личное сообщение для ilikali Найти все сообщения от ilikali
  № 8  
ilikali

Регистрация: Mar 2010
Сообщений: 34
Жаль. Может быть у вас есть пример хорошего слайдшоу на подобии этой http://www.octopussy.com.mk/galerija3/index.html. Только с подгрузкой флеш анимации? Спасибо

Старый 28.08.2011, 13:46
Котяра вне форума Посмотреть профиль Отправить личное сообщение для Котяра Посетить домашнюю страницу Котяра Найти все сообщения от Котяра
  № 9  
Котяра
буду краток
 
Аватар для Котяра

модератор форума
Регистрация: Sep 2003
Адрес: Ближайшее Замкадье
Сообщений: 3,110
Записей в блоге: 28
Отправить сообщение для Котяра с помощью ICQ Отправить сообщение для Котяра с помощью Skype™
Цитата:
Сообщение от mooncar Посмотреть сообщение
ИМХО, есть или была декомпиляция.
Код AS1/AS2:
 var _local4
Не заметил сразу. Тема закрыта.
__________________
Отряд Котовскага

Создать новую тему Закрытая тема Часовой пояс GMT +4, время: 12:51.
Быстрый переход
  « Предыдущая тема | Следующая тема »  

Теги
SWF-файлы , xml flash
Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


Часовой пояс GMT +4, время: 12:51.


Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.