/ Published in: ActionScript 3
Expand |
Embed | Plain Text
function playRandomAnim(frames:uint):void { var rand:uint = 1 + (Math.random() * frames); if (num == rand){ playRandomAnim(frames); } else { num = rand; gotoAndPlay(rand); } }
You need to login to post a comment.
