Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //スマホ対応
- if (createjs.Touch.isSupported()) {
- createjs.Touch.enable(stage, true);
- }
- var _this = this; //thisを変数に代入
- _this.stop(); //再生を止める
- _this.btn.addEventListener("click", btnClick); //イベントリスナーを設置
- function btnClick(evt) {
- console.log("btn click"); //確認用
- evt.remove(); //リスナーを外す
- _this.gotoAndPlay("do"); //フレーム移動
- }
Add Comment
Please, Sign In to add comment