Flash制作超酷的旋转图像像册视觉效果(2) 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; }};
最后可以测试了!就给大家这样解释了这个动画的大体的制作过程!如果想深入学习就把源文件下载了好好研究下吧!