![]() |
|
||||||||||
|
|||||
|
Подскажите пожайлуста, задача - убрать окно с формой заказа не сразу, а через небольшой промежуток времени, делаю так:
function close_form() { sendorder._visible = false; clearInterval(i_close_form); } rec_obj.onData = function(text:String):Void { if (text == "ok") { sendorder.txt_icq.text = ""; sendorder.txt_email.text = ""; sendorder.txt_res.text = "Ваш заказ принят!"; var i_close_form:Number = setInterval(close_form, 3000); } }; ![]()
__________________
icq4.net |
|
|||||
|
listener
|
объявите i_close_form вне тела фаших функций.
var i_close_form:Number = 0;
function close_form() {
sendorder._visible = false;
clearInterval(i_close_form);
}
rec_obj.onData = function(text:String):Void {
if (text == "ok") {
sendorder.txt_icq.text = "";
sendorder.txt_email.text = "";
sendorder.txt_res.text = "Ваш заказ принят!";
i_close_form = setInterval(close_form, 3000);
}
};
|
![]() |
![]() |
Часовой пояс GMT +4, время: 15:30. |
|
|
« Предыдущая тема | Следующая тема » |
|
|