Вопрос

I made a clock in Actionscript3.
It has no alarm and I want to try making one.
How do you make an alarm that alarms after 5min, 10min, 1hr?

Это было полезно?

Решение

Check out the Actionscript3 API. Basically, you make a Date object when the user creates the alarm and store its hours, minutes, etc. in a local variable. Then, you check with a timer whether or not the current Date's hour/minute/whatever matches the local variable's value plus whatever the delay is.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top