站内搜索
分类列表
本类推荐文章
Flash制作超酷的旋转图像像册视觉效果
作者:    来源:互连网    点击:    日期:2008-7-21 11:16:47   
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;
 }
};

  最后可以测试了!就给大家这样解释了这个动画的大体的制作过程!如果想深入学习就把源文件下载了好好研究下吧!


Flash制作超酷的旋转图像像册视觉效果 评论