Просмотр полной версии : Как написать задержку
Как написать задержку?
Так чтобы фильм проигрывался, а потом на некоторое время замер, а потом ожил? :cool:
Мой сайт (http://dni.by.ru)
In your main "action" timeline, frame 1 put the following code:
////////////////// Pause Function /////////////////////
this.createEmptyMovieClip("timer",50);
timer.onEnterFrame = function()
{
if (this.startTime>0)
{
var diff = getTimer()-this.startTime;
if (diff>this.timerLength)
{
this.target.play();
this.startTime = 0;
}
}
};
function pauseFor(theTime)
{
stop();
timer.timerLength = theTime;
timer.startTime = getTimer();
timer.target = this;
}
///////////////////////////////////////////////////
Then on the frame you want to pause, add: pauseFor(3000) //this would pause for 3 seconds.
Я попробую но может кто ещё знает подскажите!!!Http://dni.by.ru
Maxell, а что тут пробовать, трясти надо... :) Ну можешь просто в мувик вставить нужное количество одинаковых фреймов в месте паузы... :)
Работает на vBulletin ® версия 3.7.3. Copyright ©2000-2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Copyright © 1999-2008 Flasher.ru. All rights reserved.