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; } }; |