level 1
ganshoushafa
楼主
function init() {
playDirection = "left";
imgSpeed = 8;
rotateSpeed = 3500;
centerX = Stage.width/2-170;
centerY = Stage.height/2-270;
this.createEmptyMovieClip("imgHolder", 1);
imgHolder._x = centerX-470;
imgHolder._y = centerY-160;
imageWidth = 500;
imageHeight = 700;
targetAlpha = new Array();
targetAlpha = [0, 30, 80, 100, 80, 30, 0];
targetX = new Array();
targetX = [centerX-55, centerX-50, centerX
+3
0, centerX+150, centerX+330, centerX+470, centerX+370];
targetY = new Array();
targetY = [centerY+230, centerY+170, centerY+110, centerY+50, centerY+110, centerY+170, centerY+230];
getImageDepth = new Array();
getImageDepth = [0, 90, 110, 200, 112, 100, 0];
targetS = new Array();
targetS = [10, 60, 80, 100, 80, 60, 10];
targetVisible = new Array();
targetVisible = [true, true, true, true, true, true, true];
leftBtn.swapDepths(3000);
rightBtn.swapDepths(3001);
disable_btn.swapDepths(3002);
textVisible = new Array();
textVisible = [false, false, false, true, false, false, false];
totalNum = imgNum;
indexNum = 1;
disable_btn._visible = false;
disable_btn._width = Stage.width;
disable_btn._height = Stage.height;
disable_btn.onRollOver = function() {
this.useHandCursor = false;
leftBtn.gotoAndStop(1);
rightBtn.gotoAndStop(1);
};
for (var _loc3 = 0; _loc3<totalNum; ++_loc3) {
imgHolder.attachMovie("img", "img"+_loc3, _loc3+10);
var _loc2 = imgHolder["img"+_loc3];
_loc2.no_txt.text = _loc3;
_loc2._visible = false;
_loc2._x = centerX;
_loc2._xscale = 50;
_loc2._yscale = 50;
_loc2._alpha = 0;
_loc2.no_txt.text = _loc3;
_loc2.no_txt._visible = false;
loadThumbs(thumb_image[_loc3], _loc2.thumbs);
loadThumbs(thumb_image[_loc3], _loc2.thumbs2.th);
_loc2.desc_txt.autoSize = true;
_loc2.desc_txt.text = img_name[_loc3];
_loc2.desc_txt.text = img_name[_loc3];
_loc2.desc_txt._x = _loc2.desc_txt._x-_loc2.desc_txt.textWidth+1000;
_loc2.textBg._width =0;
_loc2.textBg._x = _loc2.desc_txt._x-1000;
_loc2.desc_txt._visible = false;
_loc2.textBg._visible = false;
}
// end of for
imgHolder.img2.desc_txt._visible = true;
imgHolder.img2.textBg._visible = true;
imgHolder.img2.onRelease = function() {
trace(img_link[this._name.substr(3)]);
};
setMovie();
diable_btn.swapDepths(210);
diable_btn.onRollOver = function() {
leftBtn.gotoAndStop(1);
rightBtn.gotoAndStop(1);
this.useHandCursor = false;
};
}
// End of the function
function setMovie() {
for (var _loc2 = 0; _loc2<totalNum; ++_loc2) {
posNum = (indexNum+_loc2)%totalNum;
var _loc1 = imgHolder["img"+_loc2];
_loc1._visible = targetVisible[posNum];
_loc1.desc_txt.autoSize = true;
_loc1._x = targetX[posNum];
_loc1._y = targetY[posNum];
_loc1._xscale = targetS[posNum];
_loc1._yscale = targetS[posNum];
2011年09月30日 06点09分
1
playDirection = "left";
imgSpeed = 8;
rotateSpeed = 3500;
centerX = Stage.width/2-170;
centerY = Stage.height/2-270;
this.createEmptyMovieClip("imgHolder", 1);
imgHolder._x = centerX-470;
imgHolder._y = centerY-160;
imageWidth = 500;
imageHeight = 700;
targetAlpha = new Array();
targetAlpha = [0, 30, 80, 100, 80, 30, 0];
targetX = new Array();
targetX = [centerX-55, centerX-50, centerX
+3
0, centerX+150, centerX+330, centerX+470, centerX+370];
targetY = new Array();
targetY = [centerY+230, centerY+170, centerY+110, centerY+50, centerY+110, centerY+170, centerY+230];
getImageDepth = new Array();
getImageDepth = [0, 90, 110, 200, 112, 100, 0];
targetS = new Array();
targetS = [10, 60, 80, 100, 80, 60, 10];
targetVisible = new Array();
targetVisible = [true, true, true, true, true, true, true];
leftBtn.swapDepths(3000);
rightBtn.swapDepths(3001);
disable_btn.swapDepths(3002);
textVisible = new Array();
textVisible = [false, false, false, true, false, false, false];
totalNum = imgNum;
indexNum = 1;
disable_btn._visible = false;
disable_btn._width = Stage.width;
disable_btn._height = Stage.height;
disable_btn.onRollOver = function() {
this.useHandCursor = false;
leftBtn.gotoAndStop(1);
rightBtn.gotoAndStop(1);
};
for (var _loc3 = 0; _loc3<totalNum; ++_loc3) {
imgHolder.attachMovie("img", "img"+_loc3, _loc3+10);
var _loc2 = imgHolder["img"+_loc3];
_loc2.no_txt.text = _loc3;
_loc2._visible = false;
_loc2._x = centerX;
_loc2._xscale = 50;
_loc2._yscale = 50;
_loc2._alpha = 0;
_loc2.no_txt.text = _loc3;
_loc2.no_txt._visible = false;
loadThumbs(thumb_image[_loc3], _loc2.thumbs);
loadThumbs(thumb_image[_loc3], _loc2.thumbs2.th);
_loc2.desc_txt.autoSize = true;
_loc2.desc_txt.text = img_name[_loc3];
_loc2.desc_txt.text = img_name[_loc3];
_loc2.desc_txt._x = _loc2.desc_txt._x-_loc2.desc_txt.textWidth+1000;
_loc2.textBg._width =0;
_loc2.textBg._x = _loc2.desc_txt._x-1000;
_loc2.desc_txt._visible = false;
_loc2.textBg._visible = false;
}
// end of for
imgHolder.img2.desc_txt._visible = true;
imgHolder.img2.textBg._visible = true;
imgHolder.img2.onRelease = function() {
trace(img_link[this._name.substr(3)]);
};
setMovie();
diable_btn.swapDepths(210);
diable_btn.onRollOver = function() {
leftBtn.gotoAndStop(1);
rightBtn.gotoAndStop(1);
this.useHandCursor = false;
};
}
// End of the function
function setMovie() {
for (var _loc2 = 0; _loc2<totalNum; ++_loc2) {
posNum = (indexNum+_loc2)%totalNum;
var _loc1 = imgHolder["img"+_loc2];
_loc1._visible = targetVisible[posNum];
_loc1.desc_txt.autoSize = true;
_loc1._x = targetX[posNum];
_loc1._y = targetY[posNum];
_loc1._xscale = targetS[posNum];
_loc1._yscale = targetS[posNum];