Есть слайдшоу. В него грузиться 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 минуты. Помогите пожалуйста. Заранее всем спасибо