我有 5 个电影剪辑(5 个简单的按钮),我需要它们从第二帧开始,每 4 秒播放一次。我做错了什么?谢谢。
var clipArray:Array = new Array();
clipArray[0] = loader.button_01_mc.gotoAndPlay (2);
clipArray[1] = loader.button_02_mc.gotoAndPlay (2);
clipArray[2] = loader.button_03_mc.gotoAndPlay (2);
clipArray[3] = loader.button_04_mc.gotoAndPlay (2);
clipArray[4] = loader.button_05_mc.gotoAndPlay (2);
var clipTimer:Timer = new Timer(4000);
clipTimer.addEventListener(TimerEvent.TIMER, playClips);
function playClips(event:TimerEvent):void
{
//Chooses a random clip in your array
var randomClip:int = Math.random() * clipArray.length;
}
clipTimer.start();