Показать сообщение отдельно
Старый 22.06.2013, 09:57
dark256 вне форума Посмотреть профиль Отправить личное сообщение для dark256 Посетить домашнюю страницу dark256 Найти все сообщения от dark256
  № 2  
Ответить с цитированием
dark256
 
Аватар для dark256

блогер
Регистрация: Apr 2008
Адрес: SPb
Сообщений: 3,718
Записей в блоге: 5
Отправить сообщение для dark256 с помощью ICQ Отправить сообщение для dark256 с помощью Skype™
Как вы часы ДОБАВЛЯЕТЕ?
Добавляйте через d.setHours()

ActionScript classes > Date > setHours (Date.setHours method)

setHours (Date.setHours method)
public setHours(hour:Number) : Number

Sets the hours for the specified Date object according to local time and returns the new time in milliseconds. Local time is determined by the operating system on which Flash Player is running.

Example
The following example initially creates a new Date object, setting the time and date to 8:00 a.m. on May 15, 2004, and uses Date.setHours() to change the time to 4:00 p.m.:

Код AS1/AS2:
var my_date:Date = new Date(2004,4,15,8);
trace(my_date.getHours()); // output: 8
my_date.setHours(16);
trace(my_date.getHours()); // output: 16
При этом дни месяцы и годы также пересчитаются сами.
__________________
FLASHER.MAP SOUNDSTAGE / CS3 / AS2