может кто знает Язык Машин, подскажет, есть ли здесь какие-нибудь зацепки за его родные файлы, которые не дают ставить свои?
[spoiler title=ActionScript header.swf]
bannerWidth = 766;
bannerHeight = 250;
transitions = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30];
useRandomTransitions = true;
useRandomImages = true;
alphaSpeed = 2;
duration = 4;
var XML = new XML();
xml.ignoreWhite = true;
function nextMask(current) {
if (transitions.length == 1) {
return current;
}
if (useRandomTransitions) {
rand = current;
while (current == rand) {
rand = Math.round(Math.random() * (transitions.length - 1));
}
return rand;
return;
}
if (current == transitions.length-1) {
current = 0;
} else {
++current;
}
return current;
}
var images = new Array();
var urls = new Array();
var mcLoader = new MovieClipLoader();
var loadListener = new Object();
i = 0;
currentImage = 0;
duration = duration * 1000;
currentMask = 0;
banner = createEmptyMovieClip("banner", 0);
loadXML = function ()
{
var __reg4 = this.firstChild.childNodes;
total = __reg4.length;
var __reg3 = 0;
while (__reg3 < total)
{
images.push(__reg4[__reg3].attributes.image);
urls.push(__reg4[__reg3].attributes.url);
++__reg3;
}
holder = banner.createEmptyMovieClip("holder0", 0);
inner = holder.createEmptyMovieClip("inner", 0);
loadMovie(images[currentImage], inner);
banner.onRelease = function ()
{
getURL(urls[currentImage], "");
}
;
intervalId = setInterval(_root, "changeImage", duration);
}
;
xml.onLoad = loadXML;
xml.load("templates/ju_interior/images/photos.xml");
changeImage = function ()
{
++i;
i2 = i - 2;
removeMovieClip(banner["holder" + i2]);
if (useRandomImages)
{
cI = currentImage;
while (cI == currentImage)
{
currentImage = Math.round(Math.random() * (total - 1));
}
}
else
{
++currentImage;
if (currentImage > images.length - 1)
{
currentImage = 0;
}
}
if (transitions[currentMask])
{
holder = banner.createEmptyMovieClip("holder" + i, i);
inner = holder.createEmptyMovieClip("inner", 0);
loadListener.onLoadInit = function ()
{
masc = holder.attachMovie("mask" + transitions[currentMask], "masc", 1);
masc._width = bannerWidth;
masc._height = bannerHeight;
holder.setMask(masc);
currentMask = nextMask(currentMask);
}
;
mcLoader.addListener(loadListener);
mcLoader.loadClip(images[currentImage], inner);
return;
}
holder.onEnterFrame = function ()
{
if (this._alpha > 0)
{
this._alpha = this._alpha - alphaSpeed;
return;
}
removeMovieClip(this);
}
;
holderr = banner.createEmptyMovieClip("holder" + i, i);
inner = holderr.createEmptyMovieClip("inner", 0);
loadListener.onLoadInit = function ()
{
holderr._alpha = 0;
holderr.onEnterFrame = function ()
{
if (this._alpha < 100)
{
this._alpha = this._alpha + alphaSpeed;
return;
}
delete this.onEnterFrame;
}
;
currentMask = nextMask(currentMask);
}
;
mcLoader.addListener(loadListener);
mcLoader.loadClip(images[currentImage], inner);
}
;
stop();[/spoiler]