Re: [Flashcoders] Fw: Timer Probelem

2011-09-08 Thread Glen Pike
Hi, Because your timer resolution is 1ms - so you will hold up the AVM with your 1000 loop traces and your timer resolution will suffer. If you set flag_loop=true somewhere else, you maybe okay, but your logic in timer3 currently means the testTimer theoretically gets called 2 times betw

Re: [Flashcoders] Fw: Timer Probelem

2011-09-08 Thread Kerry Thompson
There are a couple of issues I see. One, as Glen just said, is that your timer interval is too short. The other is that you're not ending your lines with semicolons. I'm not sure what effect that would have. I've rewritten the code with a timer interval of 100, and traces so you can see a history

Re: [Flashcoders] Fw: Timer Probelem

2011-09-08 Thread Glen Pike
Hi, Your Timer delay is possibly too small to be reliable - in the documentation it says that a timer delay lower than 20ms is not recommented: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Timer.html#Timer%28%29 If you then start a loop to trace

[Flashcoders] Fw: Timer Probelem

2011-09-08 Thread New Flashdeveloper
Hi I am student , I’m new in flash .In My Project I need to have  timer that work correctly with out depending on other  process in my project . Please look at the attachment  , one timer worl alone another work and have condition , when we get the condition the timers work slowly , I don’t kn