Math Random + forLoop
import gs.TweenLite ;
import fl.motion.easing.*;
for ( var i:int =0; i<18; i++){
var bunny:MovieClip = new blacky();
bunny.scaleX = bunny.scaleY =.5;
bunny.x = 50+i*(bunny.width+20);
bunny.y = 200;
addChild(bunny);
bunny.rotation = Math.random()*360;
bunny.gotoAndStop(Math.ceil(Math.random()* 6));
bunny.addEventListener(MouseEvent.ROLL_OVER, onOver);
bunny.buttonMode = true;
}
function onOver(evt:Event){
TweenLite.to (evt.currentTarget, 1, {rotation:0, ease:Back.easeOut});
}
