hi.

i'm trying to record when there's been inactivity in my site. i got
this code from the archive but don't understand where it's going
wrong. for example, i set it to trace out if the mouse has been
inactive for 10 seconds, but instead i get this message right away.
does anyone see anything out of place?

thanks. -- matt.

this.stillFor = 10000; // 10 seconds
this.startTime = getTimer();


this.onMouseMove = function(){
          this.time = 0;
          this.startTime = getTimer();
          trace('Starting timer again');
}

this.onEnterFrame  = function(){
          this.time = getTimer()-this.startTime;


          if (this.time=this.stillFor) {
                  this.time = 0;
                  this.startTime = getTimer();
                  trace('mouse has been still for 10 seconds!');
          }
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to