Re: [問題] 如何設時間到換下一個指定場景?

看板Flash作者 (hello, ActionScript)時間12年前 (2012/07/10 11:56), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
※ 發信站: 批踢踢實業坊(ptt.cc) : ◆ From: 114.46.162.60 : 推 jeaby:換場景的語法是 gotoAndStop(frame, scene); 07/10 10:16 : → Tiphareth:你好 已經更改好了 但是還是無法顯示出結果 07/10 10:43 : 推 jeaby:是加在updateTime這個function內嗎? 07/10 11:12 : → Tiphareth:不是耶~有嘗試設過會冒出有函數定義重覆的訊息 07/10 11:20 加在原本的 updateTime 內就可以了喔 function updateTime(e:TimerEvent):void { timeNum--; txt_Time.text = timeNum.toString(); if (timeNum == 0) { /* 這邊需要移除一些事件 ex: 兩個timer事件 滑鼠事件 ... */ if (scoreNum >= 100){ gotoAndStop(1, "s3"); } else { gotoAndStop(1, "s4"); } } } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.121.202.40
文章代碼(AID): #1F-wW4Du (Flash)
文章代碼(AID): #1F-wW4Du (Flash)