This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (createjs.Touch.isSupported()) { | |
createjs.Touch.enable(stage, true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//スマホ対応 | |
if (createjs.Touch.isSupported()) { | |
createjs.Touch.enable(stage, true); | |
} | |
var _this = this; //thisを変数に代入 | |
_this.stop(); //再生を止める | |
_this.btn.addEventListener("click", btnClick); //イベントリスナーを設置 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.gotoAndStop("a"); //フレーム移動 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.gotoAndStop("standby"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//スマホ対応 | |
if (createjs.Touch.isSupported()) { | |
createjs.Touch.enable(stage, true); | |
} | |
this.gotoAndStop("standby"); //"standby"のフレームに移動 | |
var _this = this; | |
//キーのインスタンス名の配列 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//スマホ対応 | |
if (createjs.Touch.isSupported()) { | |
createjs.Touch.enable(stage, true); | |
} | |
this.gotoAndStop("standby"); //"standby"のフレームに移動 | |
var _this = this; | |
//------------------ ここから鍵盤のコード ---------------------- |