Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Audio Xtra
QuickTime Silent Install
Coloring Book
SpellCatcher
Using Acrobat on a CD
Director and Flash Training (and more) on CD
Flash Component Label
Outline Text
DivXInstaller Xtra
Moving tool tip
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

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

Fax - (206) 339-5833

Send e-mail