Hi, your example is: seconds = a; newSeconds = a+10; if (seconds == newSeconds)
in other words if (seconds = seconds+10) that will never work. Look into setInterval and there is a undocumented setTimeout function somewhere I think. Better yet write your own Timer and TimerEvent class to wrap this kind of stuff. greetz JC On 3/23/07, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
Hi, I'm trying to launch an event using a timer so far the code for trace something is this: var now = new Date(); var seconds:Number = now.getSeconds(); trace(seconds); var newSeconds: Number = seconds+10; if ( seconds == newSeconds){ trace("plus 10"); } var seconds:Number = seconds; the problem is that this ones doesn't trace" plus 10", instead just traces the var seconds. Do you know what is wrong here? Regards. Gustavo Duenas _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com