1
我有一個循環動畫停止並給我一個參數錯誤。我重新編寫了幾種不同的編碼方式,但無濟於事。這裏是我的代碼:AS3 tweenlight循環停止
contactbox.addEventListener(MouseEvent.MOUSE_OVER, Scroll);
function Scroll(evt:MouseEvent){
TweenLite.to(
btnwave, 2, {
x:-115.5, ease:Linear.easeNone, overwrite:true, onComplete:Switch});
}
function Switch(){
TweenLite.to(
btnwave, 0, {
x:184.6, ease:Linear.easeNone, overwrite:true, onComplete:Scroll});
}
,這裏是它給我的錯誤:
ArgumentError: Error #1063: Argument count mismatch on Main/Scroll(). Expected 1, got 0.
at Function/http://adobe.com/AS3/2006/builtin::apply()
at com.greensock.core::TweenCore/complete()
at com.greensock::TweenLite/renderTime()
at com.greensock::TweenLite()
at com.greensock::TweenLite$/to()
at Main/Switch()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at com.greensock.core::TweenCore/complete()
at com.greensock::TweenLite/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
我想刷上我TweenLite的技能,對於一些即將到來的工作。任何幫助,將不勝感激。
Excelsior !!謝謝你,先生。 – 2013-04-04 20:55:46
歡迎:) – Zevan 2013-04-05 09:26:58