![]() |
|
||||||||||
|
|
|
|||||
|
Как сделать, чтобы флеш определял дату, время, разрешение, вид броузера и выдавал эту информацию пользавателю ???
|
|
|||||
|
для определения даты используй date объект
конструктор: myDate = new Date () ; после используй методы: Method Description Date.getDate Returns the day of the month according to local time. Date.getDay Returns the day of the week according to local time. Date.getFullYear Returns the four-digit year according to local time. Date.getHours Returns the hour according to local time. Date.getMilliseconds Returns the milliseconds according to local time. Date.getMinutes Returns the minutes according to local time. Date.getMonth Returns the month according to local time. Date.getSeconds Returns the seconds according to local time. Date.getTime Returns the number of milliseconds since midnight January 1, 1970, universal time. для определения разрешения используй объект: System.capabilities (object) и методы: System.capabilities.screenResolution.x Indicates the horizontal size of the screen. System.capabilities.screenResolution.y Indicates the vertical size of the screen. методы возвращают разрешение компа с которого был запущен ролик. определение броузера можно выпольнить только с помощью JavaScript, а потом передать через fscommand во флэш. подробную информацию смотри в хелпе флэша, там все ОЧЕНЬ хорошо описывается |
![]() |
Часовой пояс GMT +4, время: 08:02. |
|
|
« Предыдущая тема | Следующая тема » |
|
|