Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 14th, 2018 75 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. //スマホ対応
  2. if (createjs.Touch.isSupported()) {
  3.     createjs.Touch.enable(stage, true);
  4. }
  5.  
  6. var _this = this; //thisを変数に代入
  7.  
  8. _this.stop(); //再生を止める
  9.  
  10. _this.btn.addEventListener("click", btnClick); //イベントリスナーを設置
  11.  
  12. function btnClick(evt) {
  13.     console.log("btn click"); //確認用
  14.     evt.remove(); //リスナーを外す
  15.     _this.gotoAndPlay("do"); //フレーム移動
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top