Fork me on GitHub
View source

package com.haxepunk.tweens.misc

class Alarm


extends Tween

A simple alarm, useful for timed events, etc.

Constructor

View source

new (duration : Float, complete : Dynamic ->Void, , type : TweenType) : Void

Constructor.


Parameters:
duration   

Duration of the alarm.

complete   

Optional completion callback.

type   

Tween type.

Variables

read only duration : Float

Current alarm duration.

read only elapsed : Float

How much time has passed since reset.

read only remaining : Float

Time remaining on the alarm.

Functions

View source

reset (duration : Float) : Void

Sets the alarm.


Parameters:
duration   

Duration of the alarm.