문제

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