看板 Flash 關於我們 聯絡資訊
mc30207:我試試看,那請問有沒有方法可暫停onenterframe呢? 08/29 23:47
可以先宣告一個function當作onEnterFrame handler的"暫存器" 然後等到需要再度啟用onEnterFrame handler的時候 重新指派那個"暫存器"所裝的function 大致code如下: var temp:Function = myClip_mc.onEnterFrame; //暫存function myCilp_mc.onEnterFrame = null; //移除onEnterFrame handler ....等到需要重新啟用onEnterFrame handler時.... myClip_mc.onEnterFrame = temp; //重新指派暫存function -- CJ Cat = Croa'J Cat = Cockroach Cat = 西街凱特 = 蜚蠊貓 = 蟑螂貓 Gallery http://cjcat2266.deviantart.com MSN cjcat2266@hotmail.com ptt2 Board CJWorkshop - 阿多比閃光(Adobe Flash)研討區 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.80.186
mc30207:感謝感謝 這樣好寫多了 08/30 23:02
Angelliya:好用推 :) 08/31 11:16