0
我還沒有真正學到了一大堆關於與控制檯調試呢,但是當我運行Flash調試我得到以下錯誤:AS3幫助noob進行一些調試?
Attempting to launch and connect to Player using URL
C:\Users\Isaac\Desktop\Shortcuts\Project Folder\FLA FILES\bug free version.swf [SWF]
C:\Users\Isaac\Desktop\Shortcuts\Project Folder\FLA FILES\bug free version.swf - 16186539 bytes after decompression
ReferenceError: Error #1069: Property TIMER not found on flash.events.TimerEvent and there is no default value.
at bugfreeversion_fla::MainTimeline/completeFunction()[bugfreeversion_fla.MainTimeline::frame243:19]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.utils::Timer/tick()
我真的不知道如何提取信息,我需要從這裏開始,我所能想到的是我的倒數計時器存在數據問題。任何幫助,將不勝感激。
似乎非常穩固,但現在我使用的是completeTimer功能,它使用參數:completeTimer(E:TimerEvent);這是不正確的使用參數? – user2072135 2013-03-01 01:29:24
你的時間線中有一個叫做「completeFunction」的函數嗎? – zachzurn 2013-03-01 01:33:48
是的,這裏是代碼:myTimer.addEventListener(TimerEvent.TIMER_COMPLETE,completeFunction); 函數completeFunction(e:TimerEvent)顯然它只是結束計時器 { \t SoundMixer.stopAll(); \t gotoAndStop(245,「場景1」); \t myTimer.removeEventListener(TimerEvent.TIMER,countdown); \t myTimer.addEventListener(TimerEvent.TIMER_COMPLETE,completeFunction); \t} – user2072135 2013-03-01 01:43:46