質問

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