User controlled blink rates


I have an image on my frame. (a circle).
I need this circle to blink on the screen based on user’s input.

The circle display time and the hide time should be input in a input text box in the beginning. Also this has to blink for “x” number of user defined cycles.

Can this be done using AS 3?

I know how to control the delay between blinks but I cannot control the amount of time the circle stays on screen.

Can anyone help? Thanks a lot for your time guys