It depends on the time you would like this to happen. The easiest way would be to create a creationComplete event handler for the application (or the component you are creating) and then check the current time (using the Date class). On your desired times, change the state with setCurrentState() accordingly.
If you would like this to happen overtime, as-it-runs, then my suggestion would be to create a Timer object with 60000 milliseconds for example and make the same if statements there as well (you could also call, from inside your timer event handler, the initially called creationComplete handler with null as an input event).
Hope this makes sense.
I'll be sure to give this a shot and let you know if this works. Thanks!
You could use a Timer and TimerEvent.
var myTimer:Timer=new Timer(delay,repeatCount)
Hope this helps,