|
-
Trying to create a time limit
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.
-
judge and jury
If you make a function with it in you can get the function to repeat at a given time delay using the 'setInterval' command there is a post at the top of the message board which explains the use of the setInterval command but it is quite complicated to go through especially as im just about to go home, but this is a little point in the right direction I hope!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|