  | |  | Pause before action with onRollOver | Pause before action with onRollOver
2004-02-19 - By James Johnson
Back
I can 't work out how to do this. When the mouse rolls over an object, I
want to pause for a tiny bit, and then if the mouse is still over, do
something.
In actionscript:
this.whatever.onRollOver = function()
{
var startTime=getTimer();
var delay=200; // one fifth of a second
while((getTimer()-startTime) <delay) {
//do nothing
}
// if the mouse is still over then do something
if ( ????? ) {
// Do something
}
}
How do I do this? Or is there a better approach without the "hard " pause?
Cheers,
James
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104706
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |