我想寫一個快速的位,將一些圖像加載到數組中,然後通過它們循環,然後加載,然後淡出每一個。我得到的錯誤是..衰落圖像 - 參數錯誤
ArgumentError:錯誤#1063:參數計數不匹配在images_fla :: MainTimeline/goPlay()。預計0,得到1
我的代碼 -
import fl.transitions.Tween;
import fl.transitions.easing.*;
play_btn.addEventListener(MouseEvent.CLICK, goPlay)
var images = new Array();
images[0] = "../1.jpg";
images[1] = "../2.jpg";
images[2] = "../3.jpg";
images[3] = "../4.jpg";
images[4] = "../5.jpg";
images[5] = "../6.jpg";
images[6] = "../7.jpg";
images[7] = "../8.jpg";
images[8] = "../9.jpg";
images[9] = "../10.jpg";
function goPlay() {
for (var i:int = 0; i <10; i++) {
loadWindow.source = images[i];
var myTween:Tween = new Tween(images[i], "x", Elastic.easeOut, 0, 300, 5, true);
}
}