ActionScript 2.0で作るスロットマシーン
コード
this.onLoad = function(){ num01_mc.stop(); num02_mc.stop(); num03_mc.stop(); } start_btn.onPress = function(){ num01_mc.play(); num02_mc.play(); num03_mc.play(); } button01_btn.onPress = function(){ num01_mc.stop(); } button02_btn.onPress = function(){ num02_mc.stop(); } button03_btn.onPress = function(){ num03_mc.stop(); } reset_btn.onPress = function(){ num01_mc.gotoAndStop(1); num02_mc.gotoAndStop(1); num03_mc.gotoAndStop(1); }