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
Time Since Midnight
Live Video
PostScript Xtra
Button With Rollover Effect
3DVista Studio Director Xtra
TextCruncher
Director 7 Lingo Dictionary
TransMac
To activate previous instance and quit
Windows Sounds Scheme Customization
 

 

 

Behavior Timeline re-direction and navigation

Added on 7/1/2004

 

Compatibilities:
D8 D8_5 D9

This item has not yet been rated

Author: Raschko

This script will navigate to the desired frame, frame marker; or loop ( loop will sit on the attached frame). Very easy to implement; the default sits on a frame.

Download PC Source
-- 31 May 2004, written By Brian Raschko

-- Variables -- Property Box specific
Property description

property myChoice

------------------
-- Main Scripts --
------------------

on exitFrame me
  
  case myChoice of
      
    #loop:
      
      go to the frame -- sit on this frame
      
    #previous,#next:
      
      go myChoice -- go to a specific spot
      
    otherwise:
      
      go to myChoice -- move to a marker
      
  end case
  
end exitFrame

---------------------------------
-- Property "Pop-Up" Functions --
---------------------------------

on isOKToAttach (me, aSpriteType) -- What am I attached to?
  
  case aSpriteType of
    #graphic:
      return FALSE -- You can't attach ME to that!
    #script:
      return TRUE  -- I can be attached to that. ( script = attached to a frame )
  end case
  
end isOKToAttach

on getPropertyDescriptionList -- Open the Property "Pop-Up" Box.
  
  description = [:] -- Declare the Property Variable Array.
  
  -- Add the Property Vairables.
  addprop description,#myChoice,[#comment: "Go to?",        #format: #marker, #default: #loop                      ]

  -- Display these Variables.
  return description
  
end getPropertyDescriptionList

------------------------
-- Script Description --
------------------------

on getBehaviorDescription me
  RETURN
  "TimeLine Re-Direction and Navigation" & RETURN & RETURN &
  "Parameters: " & RETURN &
  "   *Move to / sit on a frame."
end getBehaviorDescription

 


Contact

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

Send e-mail