Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
IPIX
Go Marker of a Movie in current Directory
Vector Shape - Rounded Rectangle
3D games online. Developed with Macromedia Director.
XCursor xtra
Pulse Blend a Sprite
Allowing Users to Skew an Image
Ripple General Settings-Alphamania
Emboss trick
Vector Shape - Create Frame
MediaMacros Xtras Mall
 

 

 

Behavior A Lingo Timer Script

Added on 6/30/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

Rating:

Author: AlexZavatone

Servicable timer. To initialize, call the timer with the number of seconds. To check, call the timer again, a 1 will be returned if time is up. With this timer events are not suspended like in a repeat loop. Also included is a handler which will suspend events till time is out.

-- Timer Scripts (c) Alex Zavatone Feb 1, 1995
on timer seconds
  global gTimerStart
  if gtimerstart = 0 then
    set gTimerStart = the ticks
  end if
  if 60 * seconds + gtimerStart < the ticks then on timer seconds
  global gTimerStart
  if gtimerstart = 0 then
    set gTimerStart = the ticks
  end if
  if 60 * seconds + gtimerStart < the ticks then
    put "time up" -- for debugging purposes
    set myResult = true
    set gTimerStart = 0
  else
    set myResult = false
  end if
     return myResult
end

on timeout seconds
  repeat while not (timer (seconds))
  end repeat
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail