Need help with mouse on/off

http://megaswf.com/view/094c59b706a3f889f0058d9727fd4378.html

when you have not clicked on all five dots, and you take the mouse of the stage, the interactive line should be deleted(graphics.clear(); ), and the little animation from the start should come back.

my idea is to have a counter that ++ every frame, but when the mouse is moving on the stage the counter is constantly sett to 0. when the counter is, for example, 50 the animation i visible.

do anyone have any methods that don’t give the 50(for example) frame wait?

and i would also like criticism and ideas on the rest.:hugegrin:

-Vidar

(i am sorry that English isn’t my strong suit)