|
|
|
Timeline re-direction and navigation
Added on 7/1/2004
|
|
Compatibilities:
|
This item has not yet been rated
|
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
|
|