var i=3; btn.onRollOver=function() { _root.gotoAndPlay(i++); } btn.onRollOut=function() { _root.gotoAndStop(i--); }