0
我想按順序製作補間菜單項。我如何在for循環中做到這一點?我不想手動做。flash as2補間循環
感謝您的回答。
我的代碼;
var open_menuTween0:Tween = new Tween(_root.menu_tab_mc["menu"+0+"_mc"], "_y", Regular.easeIn, -20,0.05,0.2, true);
open_menuTween0["onMotionFinished"] = function(){
var open_menuAlpha0:Tween = new Tween(_root.menu_tab_mc["menu"+0+"_mc"], "_alpha", Regular.easeIn, 0,100,0.2, true);
var open_menuTween1:Tween = new Tween(_root.menu_tab_mc["menu"+1+"_mc"], "_y", Regular.easeIn, 0.05,44.15,0.2, true);
open_menuTween1["onMotionFinished"] = function(){
var open_menuAlpha1:Tween = new Tween(_root.menu_tab_mc["menu"+1+"_mc"], "_alpha", Regular.easeIn, 0,100,0.2, true);
var open_menuTween2:Tween = new Tween(_root.menu_tab_mc["menu"+2+"_mc"], "_y", Regular.easeIn, 44.15,88.25,0.2, true);
open_menuTween2["onMotionFinished"] = function(){
var open_menuAlpha2:Tween = new Tween(_root.menu_tab_mc["menu"+2+"_mc"], "_alpha", Regular.easeIn, 0,100,0.2, true);
var open_menuTween3:Tween = new Tween(_root.menu_tab_mc["menu"+3+"_mc"], "_y", Regular.easeIn,88.25,132.35,0.2, true);
open_menuTween3["onMotionFinished"] = function(){
var open_menuAlpha3:Tween = new Tween(_root.menu_tab_mc["menu"+3+"_mc"], "_alpha", Regular.easeIn, 0,100,0.2, true);
var open_menuTween4:Tween = new Tween(_root.menu_tab_mc["menu"+4+"_mc"], "_y", Regular.easeIn,132.35,176.45,0.2, true);
open_menuTween4["onMotionFinished"] = function(){
var open_menuAlpha4:Tween = new Tween(_root.menu_tab_mc["menu"+4+"_mc"], "_alpha", Regular.easeIn, 0,100,0.2, true);
var open_menuTween5:Tween = new Tween(_root.menu_tab_mc["menu"+5+"_mc"], "_y", Regular.easeIn,176.45,220.55,0.2, true);
open_menuTween5["onMotionFinished"] = function(){
var open_menuAlpha5:Tween = new Tween(_root.menu_tab_mc["menu"+5+"_mc"], "_alpha", Regular.easeIn, 0,100,0.2, true);
}
}
}
}
}
}