Energy like candy crush in as3

Hi guys. may i ask if flash can have like that feature of candy crush like if your lives are gone. you have to wait for some time to something like recharge… any sites? tutorials?