Using Flash MX. i have a button, that, when pressed, will clone a bubble movie clip that will float up the screen. But in order for the screen not to get bogged down with countless bubbles, I want to create a time limit between clicks.

I tried making a variable named wait, setting it at 10 when the bubble is created, and then decreasing it by 1 repeatedly.

On button release, one of the lines is
w = 10;

But I can't figure out where to put the code w -=1; in order for it to keep happening. If I put it in blank movieclip and subtract when it enters the frame, it doesn't work.