鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 网站制作教程 > flash > >

Flash制作超酷旋转互动相册

来源:互联网 作者:佚名 时间:2016-03-14 10:14
用鼠标点击相册外圈的照片,中间就会显示大照片 stop(); positions = []; imageTotal = 8; pauseGallery = false; var current:MovieClip; for (var i = 0; iimageTotal; i++) { var t = gallery.thumbHolder["thumb"+i]; t.image = "image"+i; t.onPress =

  
用鼠标点击相册外圈的照片,中间就会显示大照片

  Flash制作超酷旋转互动相册[多图]图片1

  Flash制作超酷旋转互动相册[多图]图片2

  Flash制作超酷旋转互动相册[多图]图片3

  Flash制作超酷旋转互动相册[多图]图片4

  Flash制作超酷旋转互动相册[多图]图片5

  Flash制作超酷旋转互动相册[多图]图片6

  Flash制作超酷旋转互动相册[多图]图片7

stop();
positions = [];
imageTotal = 8;
pauseGallery = false;
var current:MovieClip;
for (var i = 0; i<imageTotal; i++) {
 var t = gallery.thumbHolder["thumb"+i];
 t.image = "image"+i;
 t.onPress = function() {
  removeMovieClip(current);
  current = gallery.imageHolder.attachMovie(this.image, this.image, i);
  pauseGallery = false;
 };
 t.onRollOver = function() {
  pauseGallery = true;
 };
 t.onRollOut = function() {
  pauseGallery = false;
 };
}
current = gallery.imageHolder.attachMovie("image0", "image0", 1000);
this.onEnterFrame = function() {
 if (!pauseGallery) {
  for (var j = 0; j<imageTotal; j++) {
   gallery.thumbHolder["thumb"+j]._rotation -= 0.5;
  }
  gallery.thumbHolder._rotation += 0.5;
 }
}; 

  

网友评论
<