Hithere-
Im trying to get these five buttons to rotate to differrent degrees using a narray and for loop. However, when I do this, it just takes the last value (-12) and applys it to each button.
Check out my code:
ogRotation = [0,-3,-6,-9,-12];
for(var i=0; i < 5 ;i++){
test = ogRotation*;
_root['swatch'+i].onEnterFrame = function() {
this._rotation += (test-this._rotation)/speed;
}
}
Also, should I just be doing each button seperatley?
Thanks!!