Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Opening and closing a CD-door behaviour
Valentina
RADHTML Viewer
cXtraChangeRes
Macromedia Director 7 Lingo training CD
Sound Play/Stop
Wait for a Keypress
ChromeLib
Fuel
Vector Shape - Create Polygon
 

 

 

Behavior Hold for X seconds if no input is given

Added on 6/4/1999

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: MediaMacros (website)

Drop this on a frame script and assign the time (in ticks 1 second = 60 ticks) and the marker to go to when the time is up.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

property howLong, whereGo

global holdFrame

on exitFrame me
  if holdFrame = the frame then
    if the lastEvent < howLong or the timer < howLong then
      go the frame
    else
      set holdFrame = 0
      go whereGo
    end if
  else
    set holdFrame = the frame
    go the frame
    startTimer
  end if
end

on getPropertyDescriptionList me
  set p_list = [:]
  addProp p_list, #howLong , [#comment : "How long to hold before jump(in ticks):", #format : #float, #default : 2]
  addProp p_list, #whereGo , [#comment : "Marker to jump to:", #format : #marker, #default : #next]
  return p_list
end

on getBehaviorDescriptionList me
  return "Drop this on a frame to hold for X number of ticks before going to the specified marker.  If the user does not move the mouse or the time limit is passes the playback head will jump to that marker.  This is very useful in Kiosks when you want to return to an attract loop movie if the machine is left unatended."  
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail