Time issues with AS

i was wondering if it would be possible to control time through ActionScript. What im mean here is that if, let say a certain effect just finished and i want to wait for 5 sec before it automatically jumps to the next specified frame i want to play. would this be possible with AS?? or other techniques maybe??any suggestions would be greatly appreciated. thanks