私はAS2.0を使用していて、movieClipを一定時間停止し、別の制限で再生する.swfムービーを作成しようとしていました。これは私がこれまでに得たものです。ループなしでif条件で動作しますが、ループが必要なので、希望どおりに動作します。助けてください、ありがとう。
myDate = new Date();
hrs = myDate.getHours();
while ( hrs >6 && hrs <21) // time range i want the movieclip to stop
{
stop(); // to stop the timeline
Night.stop(); // " Night " is the instance name of the movieclip
hrs = myDate.getHours(); // to update the time
}
stop(); // to stop the timeline
Night.play(); // it's out of the time limit so the movieclip should play