
Welcome Guest
|
#1
|
|||
|
|||
|
Hi everyone.
This is my first visit to this forum. Just become a member. I've been working with Flash for a while now, and I think it's just wonderful. Some time ago a got an idea to build a metronome, you know a little thing that help musicians to play in tempo. The only way (as I know) to do this in Flash is to use the setInterval function. My code looks like this: (I've simplified it a bit) _global.spela_upp = function(){ function wait() { _root.hiSound.start(0,1); } myTimer = setInterval(wait, 180); } The problem is that when I use a smaller number than 180 for the delay between the clicks, my metronome don't play at an even tempo. With higher numbers, it sounds fine. I've build a test program with only the code above and a button to start it. My first metronome is build with a couple of thousend lines of code, I thougt that the size of the program made the metronome to go uneven, but with as few lins as above I get the same problem. Is there another way to get delays, or is this a Flash problem (meaning I just can play slow melodies). I would be glad if someone has an answer to my problem, as I have spent a lot of time on this project. Thanks in advance. Last edited by Musiccie : 02-12-2006 at 04:39 PM |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question|my first post - problem with link in SWF file | james341 | Flash CS4 |
0 | 09-28-2009 08:49 AM |
| textfield focus problem in external swf | mrpoate | Newbies |
1 | 07-10-2007 11:34 AM |
| setInterval problem | Musiccie | Actionscript 2.0 |
2 | 02-12-2006 04:49 PM |
| Problem implementing setInterval in a prototype | sikelianos | Flash MX ActionScript |
2 | 02-03-2005 08:44 PM |
| Setinterval Problem!!! Help | murka390 | Flash MX ActionScript |
5 | 08-25-2004 10:15 AM |

Art & Design


