每个小的缩略图的制作方法很简单,给大家截图。把缩略图用遮照遮好!
图6
最后把添加一个加载loading...,第一帧的action是stop();
图7
第二帧的action是:
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; } }; |
最后可以测试了!就给大家这样解释了这个动画的大体的制作过程!如果想深入学习就把源文件下载了好好研究下吧!
学习更多flash教程请点击进入-闪客地带