on mouseUp go to frame "part 2" end
put field "Name" into theName
where theName is either a local or global variable. You could also store the value in a field into another field.
on keyUp global theName if the key = RETURN then put field "Name Entry" into theName end if end keyUp
if the hilite of member "Choose Option" = TRUE then go to frame "new sequence" end if
on exitFrame if rollover(1) then go to frame "Left" if rollover(2) then go to frame "Right" end
on exitFrame if rollover(1) then cursor [3] else cursor -1 end
on exitFrame if rollover(1) then cursor [3,4] else cursor -1 end
To create a custom cursor (which I assume is in sprite 5), follow the two steps below:
on startMovie set the puppet of sprite 5 to TRUE cursor 200 end
on exitFrame doArrow go to the Frame end
on doArrow set the locH of sprite 5 to the mouseH set the locV of sprite 5 to the mouseV updateStage end
on startMovie set the keyUpScript to "checkForTab" endon checkForTab if the key = TAB go next end
the checkForArrow is a name of a handler that you must place in the movie script.
on keyUp if the key = TAB then go next end
7. Note that the TAB used here is a predefined constant. That means that director already knows about it....you don't have to assign a value to it. The predefined constants in director a re:
BACKSPACE EMPTY ENTER FALSE QUOTERETURN TAB TRUE
8. To check for any other character, youÕll have to know its ASCII encoding.
on startMovie set the moveableSprite of sprite 2 to TRUE end
on enterFrame set the moveableSprite of sprite 2 to TRUE endon exitFrame set the moveableSprite of sprite 2 to FALSE end
on exitFrame if sprite 2 intersects 4 then go to frame ÒanimateÓ end
on startMovie installMenu 17 end
where 17 is the number of the field cast member that contains the menu's items and their definitions. Note that you must use the cast number, not a name.
menu:Volume Loud|go to frame "Loud" Medium|go to frame "Medium" Soft|to to frame "Soft"
on startMovie installMenu 0 end
if boolean-expression then some Lingo commands else some other Lingo commands end if
Return to Student Home Page
Last Modified: 6 April 1998
THIS PAGE MAINTAINED BY:
John
Barr, Ithaca College