%%%%%%%%%%goes in ur button%%%%%%%% on (release) { num = Math.ceil(Math.random()*10); trace(num); if (Math.ceil(_root.guess.text) == num) { _root.gotoAndStop(3); } else { _root.gotoAndStop(2); } } %%%%%%%%%%%Goes in frame 2 on time line%%%%%%%%%% ans.text=num stop(); %%%%%%%%%%%Goes in the button that lets you play again%%%%%%%%%%% on (release) { gotoAndStop(1); } %%%%%%%%%%%put stops in all the frames%%%%%%%%%%%55