// frame 1 (DOACTION)
function galleryXml(linkUrl)
{
System.useCodepage = true;
img_name = new Array();
img_link = new Array();
thumb_image = new Array();
galleryLink = new XML();
galleryLink.ignoreWhite = true;
galleryLink.load();
while(if()
{
gotoAndStop(2); imgNum = galleryLink.firstChild.childNodes.length;
var _local2 = 0;
if(_local2 < imgNum)
{
this.firstChild.childNodes;
img_name._local2 = this.firstChild.childNodes._local2.childNodes.0.firstChild.nodeValue;
img_link._local2 = this.firstChild.childNodes._local2.childNodes.1.firstChild.nodeValue;
thumb_image._local2 = this.firstChild.childNodes._local2.childNodes.2.firstChild.nodeValue;
_local2++;
} // end while
while( } // end while
galleryLink.onLoad = "function( success)
{
}";
var preLoaderCount = 0;
if(!isNaN(Math.floor((galleryLink.getBytesLoaded() / galleryLink.getBytesTotal()) * 100)))
{
if(!(Math.floor((galleryLink.getBytesLoaded() / galleryLink.getBytesTotal()) * 100) < 100))
{
pBar_mc.play();
this._alpha = this._alpha + 0.1000 * (-this._alpha);
if(preLoaderCount == 30)
{
this._visible = false;
delete this.onEnterFrame onEnterFrame;
} // end if
} // end if
} // end if
.pBar_mc = "function( )
{
preLoaderCount++;
Math.floor((galleryLink.getBytesLoaded() / galleryLink.getBytesTotal()) * 100);
}";
}
stop();
linkUrl = "./imglink_kr.xml";
galleryXml(linkUrl);
// frame 2 (DOACTION)
function init()
{
playDirection = "left";
imgSpeed = 30;
rotateSpeed = 3000;
imageWidth = 240;
imageHeight = 410;
this.createEmptyMovieClip("imgHolder",1);
imgHolder._x = 47;
imgHolder._y = -1;
targetAlpha = new Array();
targetAlpha = new Array(0,100,100,100,100,0);
targetX = new Array();
targetX = new Array(683,-57,189,437,683,683);
targetY = new Array();
targetY = new Array(6,-15,-15,-15,-15,6);
getImageDepth = new Array();
getImageDepth = new Array(80,90,110,200,112,100);
targetS = new Array();
targetS = new Array(0,100,100,100,100,0);
targetVisible = new Array();
targetVisible = new Array(true,true,true,true,true,true,true);
leftBtn.swapDepths(3000);
rightBtn.swapDepths(3001);
disable_btn.swapDepths(3002);
textVisible = new Array();
textVisible = new Array(false,false,false,true,false,false,false);
totalNum = imgNum;
indexNum = 1;
var _local3 = 0;
while(if(_local3 < totalNum)
{
imgHolder.attachMovie("img","img" + _local3,_local3 + 10);
imgHolder.("img" + _local3);
imgHolder.("img" + _local3).no_txt.text = _local3;
imgHolder.("img" + _local3)._visible = false;
imgHolder.("img" + _local3)._xscale = 50;
imgHolder.("img" + _local3)._yscale = 50;
imgHolder.("img" + _local3)._alpha = 0;
imgHolder.("img" + _local3).no_txt.text = _local3;
imgHolder.("img" + _local3).no_txt._visible = false;
loadThumbs(thumb_image._local3,imgHolder.("img" + _local3).thumbs.th);
loadThumbs(thumb_image._local3,imgHolder.("img" + _local3).thumbs2.th);
imgHolder.("img" + _local3).desc_txt.autoSize = true;
imgHolder.("img" + _local3).desc_txt.text = img_name._local3;
imgHolder.("img" + _local3).desc_txt.text = img_name._local3;
setBlurFilter(imgHolder.("img" + _local3),0,0,0);
imgHolder.("img" + _local3).textBg._width = imgHolder.("img" + _local3).desc_txt.textWidth + 20;
imgHolder.("img" + _local3).desc_txt._visible = false;
imgHolder.("img" + _local3).textBg._visible = false;
getLink(imgHolder.("img" + _local3));
_local3++;
} // end while
setBlurFilter(imgHolder.img2,0,0,0);
imgHolder.img2.desc_txt._visible = true;
imgHolder.img2.textBg._visible = true;
setMovie();
}
function getLink(mc)
{
mc.onRelease = "function( )
{
@getURL(img_link.this._name.substr(3));
}";
}
function setMovie()
{
0;
while(if()
{
posNum = totalNum %s;
imgHolder.("img" + 0);
imgHolder.("img" + 0)._visible = targetVisible.posNum;
imgHolder.("img" + 0).desc_txt.autoSize = true;
imgHolder.("img" + 0)._x = targetX.posNum;
imgHolder.("img" + 0)._y = targetY.posNum;
imgHolder.("img" + 0)._xscale = targetS.posNum;
imgHolder.("img" + 0)._yscale = targetS.posNum;
imgHolder.("img" + 0)._alpha = targetAlpha.posNum;
imgHolder.("img" + 0).swapDepths(getImageDepth.posNum);
0++;
} // end while
}
function rotateMovie()
{
disable_btn._visible = true;
0;
if()
{
posNum = totalNum %s;
imgHolder.("img" + 0);
imgHolder.("img" + 0)._visible = false;
imgHolder.("img" + 0)._visible = targetX.posNum;
imgHolder.("img" + 0).desc_txt._visible = textVisible.posNum;
imgHolder.("img" + 0).textBg._visible = textVisible.posNum;
setBlurFilter(imgHolder.("img" + 0),0,0,0);
getLink(imgHolder.("img" + 0));
if(imgHolder.("img" + 0).textBg._visible == true)
{
setBlurFilter(imgHolder.("img" + 0),0,0,0);
} // end if
while( mx.transitions.Tween(imgHolder.("img" + 0),_x,mx.transitions.easing.Strong.easeOut,imgHolder.("img" + 0)._x,targetX.posNum,imgSpeed,false);
mx.transitions.Tween(imgHolder.("img" + 0),_y,mx.transitions.easing.Strong.easeOut,imgHolder.("img" + 0)._y,targetY.posNum,imgSpeed,false);
mx.transitions.Tween(imgHolder.("img" + 0),_xscale,mx.transitions.easing.Strong.easeOut,imgHolder.("img" + 0)._xscale,targetS.posNum,imgSpeed,false);
mx.transitions.Tween(imgHolder.("img" + 0),_yscale,mx.transitions.easing.Strong.easeOut,imgHolder.("img" + 0)._yscale,targetS.posNum,imgSpeed,false);
mx.transitions.Tween(imgHolder.("img" + 0),_alpha,mx.transitions.easing.Strong.easeOut,imgHolder.("img" + 0)._alpha,targetAlpha.posNum,imgSpeed,false);
imgHolder.("img" + 0).swapDepths(getImageDepth.posNum);
0++;
} // end while
}
function setBlurFilter(mc,blurX,blurY,blurQuality)
{
blurQuality.cacheAsBitmap = true;
flash.filters.BlurFilter(,,blurX);
new Array();
new Array().push(flash.filters.BlurFilter(,,blurX));
blurQuality.filters = new Array();
}
function loadThumbs(linkUrl,movLoader)
{
new MovieClipLoader();
new Object();
if(!isNaN(pctLoaded))
{
if(!(pctLoaded < 100))
{
bytesTotal._parent.pBar_mc.gotoAndPlay(2);
this.gotoAndPlay(2);
} // end if
} // end if
new Object().onLoadProgress = "function( target,bytesLoaded,bytesTotal)
{
pctLoaded = Math.floor((blurX / bytesLoaded) * 100);
bytesTotal._parent.pBar_mc.gotoAndPlay(2);
}";
bytesTotal.onLoadError = "function( target_mc,errorCode,httpStatus)
{
}";
bytesTotal.onLoadInit = "function( target)
{
mx.transitions.Tween(target._parent.pBar_mc,_alpha,mx.transitions.easing.Strong.easeOut,target._parent.pBar_mc._alpha,0,100,false);
target._width = imageWidth;
从代码看,是反编译出来的吧?完全没有条理可言,也让人没耐心看完,但我还是来贡献一下在新窗口中打开链接的代码吧。