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
Get browser versions
27 Sum Game-Numbers
RUNNING LED's
Set ViewScale Property of a Flash Sprite
Linear and Property List AND String functions
Buddy Tray
Button Animator on how close cursor is to it
Director Publications
Director's Third Dimension : Fundamentals of 3D Programming in Director 8.5
Clean for reinstall
 

 

 

Behavior Wait for X seconds, go to marker

Added on 3/16/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: MediaMacros (website)

Drop this on a frame and it will loop for the defined number of seconds and then go to the chosen marker.

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

property theTime, howLong, goWhere

on getPropertyDescriptionList me
  p_list = [:]
  p_list.addProp(#howLong, [#format : #float, #default : 2, #comment : "How long in seconds to wait:"])
  p_list.addProp(#goWhere, [#format : #marker, #default : #next, #comment : "What marker to go to after time has elapsed:"])
  return p_list
end


on exitFrame me
  if theTime = void then
    theTime = the timer + (howLong * 60)
    go the frame  
  else
    if the timer < theTime then
      go the frame
    else
      go goWhere
    end if
  end if
end

on getBehaviorDescription me
  return "Place this on a frame script and assign it a number of seconds and a marker.  It will loop on that frame until the time is up and then jump to the specified marker."
end

 


Contact

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

Send e-mail