REVO2700dFunctionsLectPfunction getStackPath stFileName set the itemDelimiter to "/" delete last item of stFileName return stFileName end getStackPath function explode string repeat for each character nextChar in string put nextChar & space after explodedString end repeat return explodedString end explode function itemsToLines inputText repeat with x = 1 to number of items in inputText put item x of inputText into line x of outputText end repeat return outputText end itemsToLines function capitalize string,allWds if allWds is true then put number of words in string into limit else put 1 into limit repeat with i = 1 to limit put toUpper(char 1 of word i of string) into char 1 of word i of string end repeat return string end capitalize {Functions Lecture UGenevaUGenevaWGeneva U New YorkU New YorkUMonacoULucida GrandeUCourierUCourierUTimes New RomanW New YorkU New YorkW New YorkULucida GrandeWLucida Grande U Arial BlackU Arial BlackUTimes New RomanWTimes New RomanW Arial Black ULucida Grande cREVGeneralscriptChecksum;`-Y6Gt bookmarks handlerList,getStackPath explode itemsToLines capitalizescriptSelectionchar 492 to 764 prevHandler getStackPath tempScriptscript

function getStackPath stFileName

set the itemDelimiter to "/"

delete last item of stFileName

return stFileName

end getStackPath

function explode string

repeat for each character nextChar in string

put nextChar & space after explodedString

end repeat

return explodedString

end explode

function itemsToLines inputText

repeat with x = 1 to number of items in inputText

put item x of inputText into line x of outputText

end repeat

return outputText

end itemsToLines

function capitalize string,allWds

if allWds is true then put number of words in string into limit

else put 1 into limit

repeat with i = 1 to limit

put toUpper(char 1 of word i of string) into char 1 of word i of string

end repeat

return string

end capitalize

 card id 1002 @ cREVGeneral bookmarks handlerList tempScript prevHandlerscriptSelection char 1 to 0script  blackbox Pon openCard resetAnim pass openCard end openCard on resetAnim set the label of btn "movingBtn" to "data>>" set the textFont of btn "movingBtn" to "Arial Black" set the textStyle of btn "movingBtn" to "plain" set the foregroundColor of btn "movingBtn" to 204,0,0 set the backGroundColor of btn "movingBtn" to "white" set the opaque of btn "movingBtn" to false set the loc of btn "movingBtn" to 72,335 --revGoToFramePaused dataAnim,1 end resetAnim 30 cREVGeneralscriptChecksumH˳d@j bookmarks handlerListopenCard resetAnim tempScript prevHandleropenCardscriptSelectionchar 419 to 418script

on openCard

resetAnim

pass openCard

end openCard

on resetAnim

set the label of btn "movingBtn" to "data>>"

set the textFont of btn "movingBtn" to "Arial Black"

set the textStyle of btn "movingBtn" to "plain"

set the foregroundColor of btn "movingBtn" to 204,0,0

set the backGroundColor of btn "movingBtn" to "white"

set the opaque of btn "movingBtn" to false

set the loc of btn "movingBtn" to 72,335

--revGoToFramePaused dataAnim,1

end resetAnim

cREVAnimation dataAnim,playAllFramesfalse currentEditdataAnimdataAnim,calculatedTotal30dataAnim,objectsListbutton "movingBtn"dataAnim,frameNames% 30,endFrame 15,midFrame 1,startFramelistdataAnimdataAnim,palindromefalsedataAnim,currentFrame1dataAnim,frameRate10dataAnim,repeatCount0dataAnim,statuspaused \]^ @  Pe-- here is an example of reading from a file one line at a time: -- Be sure to set the defaultFolder property to the same folder as this stack. -- (Type "readLines" into the message box to run this script.) on readLines get the fileName of this stack set the itemdelimiter to "/" delete last item of it set the defaultFolder to it put "files/Lines.txt" into fileNm open file fileNm repeat set the cursor to watch read from file fileNm until return put it into fld "output" if it is empty then exit repeat wait until the mouseClick end repeat close file fileNm end readLines  cREVGeneralscriptChecksumH\$E lc bookmarks handlerList readLines tempScript prevHandlerscriptSelectionchar 613 to 612script9

-- here is an example of reading from a file one line at a time:

-- Be sure to set the defaultFolder property to the same folder as this stack.

-- (Type "readLines" into the message box to run this script.)

on readLines

get the fileName of this stack

set the itemdelimiter to "/"

delete last item of it

set the defaultFolder to it

put "files/Lines.txt" into fileNm

open file fileNm

repeat

set the cursor to watch

read from file fileNm until return

put it into fld "output"

if it is empty then exit repeat

wait until the mouseClick

end repeat

close file fileNm

end readLines

9 @! @ cREVGeneral bookmarks handlerListscriptSelection char 1 to 0 prevHandler tempScriptscript :rightarrowBlue.gif@\ sGIF89a 1f3̙f3f3ffffff3f3333f333f3f3̙f3̙̙̙̙f̙3̙ffffff3f3333f333f3̙f3̙̙f3̙f3ff̙ffff3f33̙33f333̙f3ffffff3ffff̙fff3fffffff3ffffffffffff3fff3f3f3f3ff33f3ffffff3f3333f333333̙3f3333333f3333f3f3f3ff3f33f33333333f333333333f333f3̙f3f3ffffff3f3333f333f3wUD"wUD"wUD"ݻwwwUUUDDD"""!, PH j DPABTpŠ b(q# 9GL1?_ty̏6)fyC<58`@; cREVGeneral revUniqueID 1013121048233leftarrowBlue.gif@N rGIF89a 1f3̙f3f3ffffff3f3333f333f3f3̙f3̙̙̙̙f̙3̙ffffff3f3333f333f3̙f3̙̙f3̙f3ff̙ffff3f33̙33f333̙f3ffffff3ffff̙fff3fffffff3ffffffffffff3fff3f3f3f3ff33f3ffffff3f3333f333333̙3f3333333f3333f3f3f3ff3f33f33333333f333333333f333f3̙f3f3ffffff3f3333f333f3wUD"wUD"wUD"ݻwwwUUUDDD"""!, OHD(PB(!ń%fT8p#Gd&7@R K.S:$$MkV9K<2 ; cREVGeneral revUniqueID 1013121347807leftarrowRed.gif@( rGIF89a 1f3̙f3f3ffffff3f3333f333f3f3̙f3̙̙̙̙f̙3̙ffffff3f3333f333f3̙f3̙̙f3̙f3ff̙ffff3f33̙33f333̙f3ffffff3ffff̙fff3fffffff3ffffffffffff3fff3f3f3f3ff33f3ffffff3f3333f333333̙3f3333333f3333f3f3f3ff3f33f33333333f333333333f333f3̙f3f3ffffff3f3333f333f3wUD"wUD"wUD"ݻwwwUUUDDD"""!, OHD(PB(!ń%fT8p#Gd&7@R K.S:$$MkV9K<2 ; cREVGeneral revUniqueID 1013121358883rightarrowRed.gif@: sGIF89a 1f3̙f3f3ffffff3f3333f333f3f3̙f3̙̙̙̙f̙3̙ffffff3f3333f333f3̙f3̙̙f3̙f3ff̙ffff3f33̙33f333̙f3ffffff3ffff̙fff3fffffff3ffffffffffff3fff3f3f3f3ff33f3ffffff3f3333f333333̙3f3333333f3333f3f3f3ff3f33f33333333f333333333f333f3̙f3f3ffffff3f3333f333f3wUD"wUD"wUD"ݻwwwUUUDDD"""!, PH G DPABTpŠ b(q# 9GL1?_ty̏6)fyC<58`@; cREVGeneral revUniqueID 1013121370793bgGrpon openCard put the number of this cd && "of" && number of cds into fld "count" send mouseUp to btn "reset" end openCard on mouseUp if the short name of the target contains "cover" then set the opaque of the target to not the hilite of the target if not the opaque of the target then put the exampleText of the target into bg fld "example" else put empty into bg fld "example" end if end mouseUp Selection Descriptionfalse cREVGeneralscriptChecksum 1KK^b b bookmarks revUniqueID 1013121672950 handlerListopenCard mouseUpscriptSelection prevHandleropenCard tempScriptscript

on openCard

put the number of this cd && "of" && number of cds into fld "count"

send mouseUp to btn "reset"

end openCard

on mouseUp

if the short name of the target contains "cover" then

set the opaque of the target to not the hilite of the target

if not the opaque of the target then put the exampleText of the target into bg fld "example"

else put empty into bg fld "example"

end if

end mouseUp

topich @&Selection Descriptionfalse cREVGeneral bookmarks revUniqueID 1013120155133 handlerListscriptSelection prevHandler tempScriptscript  writing function handlers  When to use functions  What is a function?  Functions in Transcript ! Examples of custom functions  Calling custom functions  backdropJ@@(Selection Descriptionfalse cREVGeneral bookmarks revUniqueID 1013209955997 handlerListscriptSelection char 1 to 0 prevHandler tempScriptscript  discussion (H@&xSelection Descriptionfalse cREVTable currentview

A what ?

We already know how to write our own message handlers.

Transcript also provides a way to write custom functions. Here is an example that can be used to find the path to the folder containing the current stack.

A function handler is similar to other handlers, but differs slightly in syntax and in the way it is used.

 cREVGeneral revUniqueID 1013120448128 bookmarks handlerList tempScript prevHandlerscriptSelection char 1 to 0script  /Syntax: function functionName [parameterList]     -  > where functionName is a the name of the function (same rules as message handler names -- begins with letter or underscore (_), name can contain any combination of letters, numbers and underscore, but no punctuation or special characters (*,&,%,, etc.))   > and parameterList is a comma-separated list of variable names that hold the data being passed to the function. You can pass up to 50 variables.   y > the keyword return is required; the value following the return keyword is passed back to where it was called from.   & > D4  $When do you use a function handler? 9 > When you want to get the results of a calculation.    & #When do you use a message handler? 5 > When you want to make Revolution do something. '  ' ) Since you usually want to have the function available from anywhere in your stack, a function handler is usually placed in the stack script. However a function handler can be placed in any script.  -A function is like a so-called black box: ! > you put data into into it, 5 > the black box modifies the data in some way, ) > and modified data comes out of it.  A what ?       7We already know how to write our own message handlers. Transcript also provides a way to write custom functions. Here is an example that can be used to find the path to the folder containing the current stack. kA function handler is similar to other handlers, but differs slightly in syntax and in the way it is used. ! HThere are several custom function handlers in the script of this stack. < explode() -- places spaces between each letter of a string H itemsToLines() -- changes a list of items to a list on separate lines. u capitalize() -- lets you capitalize the first letter of a string or all the first letters of each word in a string. S S!  JWhen using standard Transcript functions you can choose one of two forms. }You can use a custom function just like any of the standard Transcript functions, except that you must use parentheses form. example ih cREVTable currentview

--This is how to use a function in a script:

on openCard -- or whatever handler you want to use it in

put getStackPath(the filename of this stack) into pathName

end openCard

function getStackPath stFileName

set the itemDelimiter to "/"

delete last item of stFileName

return stFileName

end getStackPath

 cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013120653879 handlerList prevHandler tempScriptscript

    ---This is how to use a function in a script: 9on openCard -- or whatever handler you want to use it in = put getStackPath(the filename of this stack) into pathName end openCard !function getStackPath stFileName  set the itemDelimiter to "/" ! delete last item of stFileName  return stFileName end getPath ! "function capitalize string,allWds B if allWds is true then put number of words in string into limit  else put 1 into limit  repeat with i = 1 to limit L put toUpper(char 1 of word i of string) into char 1 of word i of string end repeat  return string end capitalize --enter in message box: >put capitalize("this is a sentence.",false) into fld "output"  8-- Here is a valid function call for a custom function: 9put getStackPath(the filename of this stack) into myPath`oƤ count h cREVGeneral bookmarks revUniqueID 1013120932815 handlerListscriptSelection char 1 to 0 prevHandler tempScriptscript 4 of 6Resetjcon mouseUp

put empty into fld "example"

repeat with x = 1 to number of cd btns

set the opaque of cd btn x to true

set the hilite of cd btn x to false

end repeat

if there is a cd fld 1 then

repeat with x = 1 to number of cd flds

put empty into cd fld x

end repeat

end if

end mouseUp

NextjK8on mouseUp visual wipe left go next cd end mouseUp @H&$ cREVGeneralscriptChecksumy).^j7 bookmarks revUniqueID 1013121265868 handlerListmouseUpscriptSelection char 43 to 42 prevHandler tempScriptscript

on mouseUp

visual wipe left

go next cd

end mouseUp

prevjC9on mouseUp visual wipe right go prev cd end mouseUp @&$ cREVGeneralscriptChecksumC̰>)ț> revUniqueID 1013121453000 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 31 to 30script

on mouseUp

visual wipe right

go prev cd

end mouseUp

 coverBtns$on mouseUp if the short name of the target contains "cover" then set the opaque of the target to not the hilite of the target if not the opaque of the target then put the exampleText of the target into bg fld "example" else put empty into bg fld "example" end if end mouseUp D cREVGeneralscriptChecksumVAlсO*g revUniqueID 1013212831500 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelectionchar 291 to 290script

on mouseUp

if the short name of the target contains "cover" then

set the opaque of the target to not the hilite of the target

if not the opaque of the target then put the exampleText of the target into bg fld "example"

else put empty into bg fld "example"

end if

end mouseUp

cover1` @Hy exampleTextjon myOwnHandler beep put "I did it myself!" into cd fld "output" -- do other things end myOwnHandlerSelection Descriptionfalse cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013122071654 handlerListscriptSelection char 1 to 0 prevHandlermouseUp tempScriptscript

 cover2` @r{& exampleTextfunction getStackPath stFileName set the itemDelimiter to "/" delete last item of stFileName return stFileName end getStackPath  cREVGeneralscriptChecksumُ B~ revUniqueID 1013122759270 bookmarks handlerList tempScript prevHandlermouseUpscriptSelectionscript

 Scover3` LLLLLL@{( exampleText2--This is how to use a function in a script: on openCard -- or whatever handler you want to use it in put getStackPath(the filename of this stack) into pathName end openCard function getStackPath stFileName set the itemDelimiter to "/" delete last item of stFileName return stFileName end getPath  cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013122759270 handlerListscriptSelection char 2 to 1 prevHandlermouseUp tempScriptscript

 coverBtns2iKon mouseUp if the short name of the target contains "cover" then doBtnStuff end if end mouseUp on doBtnStuff set the opaque of the target to not the hilite of the target if not the opaque of the target then put the exampleText of the target into bg fld "example" else put empty into bg fld "example" end doBtnStuff HB cREVGeneralscriptChecksumpdZ&9 revUniqueID 1013213175054 bookmarks handlerListmouseUp doBtnStuff tempScript prevHandlermouseUpscriptSelectionchar 321 to 320script

on mouseUp

if the short name of the target contains "cover" then

doBtnStuff

end if

end mouseUp

on doBtnStuff

set the opaque of the target to not the hilite of the target

if not the opaque of the target then put the exampleText of the target into bg fld "example"

else put empty into bg fld "example"

end doBtnStuff

cover1`\on mouseUp doBtnStuff wait 30 ticks move btn "movingBtn" to the loc of graphic "blackBox" in 2 sec --revPlayanimation "dataAnim",1,15 end mouseUp @Ly exampleTextSelection Descriptionfalse cREVGeneralscriptChecksumg?]k bookmarks revUniqueID 1013122071654 handlerListmouseUpscriptSelectionchar 108 to 107 prevHandlermouseUp tempScriptscript

on mouseUp

doBtnStuff

wait 30 ticks

move btn "movingBtn" to the loc of graphic "blackBox" in 2 sec

--revPlayanimation "dataAnim",1,15

end mouseUp

 cover2`\Aon mouseUp doBtnStuff put the backgroundColor of graphic "blackbox" into saveColor put the foregroundColor of graphic "blackbox" into saveForeColor --repeat 2 wait 20 set the backgroundColor of graphic "blackBox" to "204,0,0" set the backgroundColor of graphic "blackBoxback" to "204,0,0" set the backgroundColor of graphic "fillin" to "204,0,0" repeat 15 set the backgroundPattern of graphic "blackBox" to random(164) set the foregroundColor of graphic "blackBox" to random(255),random(255),random(255) wait 10 end repeat set the backgroundColor of graphic "blackBox" to saveColor set the backgroundColor of graphic "blackBoxback" to saveColor set the backgroundColor of graphic "fillin" to saveColor set the foregroundColor of graphic "blackbox" to saveForeColor --end repeat end mouseUp @`y exampleTextSelection Descriptionfalse cREVGeneralscriptChecksum,!`|< X revUniqueID 1013210361565 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 24 to 23script

on mouseUp

doBtnStuff

put the backgroundColor of graphic "blackbox" into saveColor

put the foregroundColor of graphic "blackbox" into saveForeColor

--repeat 2

wait 20

set the backgroundColor of graphic "blackBox" to "204,0,0"

set the backgroundColor of graphic "blackBoxback" to "204,0,0"

set the backgroundColor of graphic "fillin" to "204,0,0"

repeat 15

set the backgroundPattern of graphic "blackBox" to random(164)

set the foregroundColor of graphic "blackBox" to random(255),random(255),random(255)

wait 10

end repeat

set the backgroundColor of graphic "blackBox" to saveColor

set the backgroundColor of graphic "blackBoxback" to saveColor

set the backgroundColor of graphic "fillin" to saveColor

set the foregroundColor of graphic "blackbox" to saveForeColor

--end repeat

end mouseUp

 cover3`\Von mouseUp doBtnStuff set the label of btn "movingBtn" to "DaTa>>" set the textFont of btn "movingBtn" to "Times New Roman" set the textStyle of btn "movingBtn" to "bold" set the foregroundColor of btn "movingBtn" to blue wait 15 ticks move btn "movingBtn" to 548,344 in 2 sec --revPlayAnimation "dataAnim",15,30 end mouseUp @ty exampleTextSelection Descriptionfalse cREVGeneralscriptChecksumKA 7Tm{n U bookmarks revUniqueID 1013210373427 handlerListmouseUpscriptSelectionchar 291 to 290 prevHandlermouseUp tempScriptscript

on mouseUp

doBtnStuff

set the label of btn "movingBtn" to "DaTa>>"

set the textFont of btn "movingBtn" to "Times New Roman"

set the textStyle of btn "movingBtn" to "bold"

set the foregroundColor of btn "movingBtn" to blue

wait 15 ticks

move btn "movingBtn" to 548,344 in 2 sec

--revPlayAnimation "dataAnim",15,30

end mouseUp

  coverBtns3i$on mouseUp if the short name of the target contains "cover" then set the opaque of the target to not the hilite of the target if not the opaque of the target then put the exampleText of the target into bg fld "example" else put empty into bg fld "example" end if end mouseUp C cREVGeneralscriptChecksumVAlсO*g bookmarks revUniqueID 1013213175054 handlerListmouseUpscriptSelectionchar 291 to 290 prevHandler tempScriptscript

on mouseUp

if the short name of the target contains "cover" then

set the opaque of the target to not the hilite of the target

if not the opaque of the target then put the exampleText of the target into bg fld "example"

else put empty into bg fld "example"

end if

end mouseUp

cover1` @Gy exampleText-- for example, -- to get the results of a mathematical calculation: -- the square root of some number -- some number times 12 -- or to change text in some consistent way: -- change the color of every third character to blue cREVGeneralscriptChecksumُ B~ revUniqueID 1013122071654 bookmarks handlerList tempScript prevHandlermouseUpscriptSelection char 1 to 0script

 cover1` @y exampleTextT-- for example, -- play a sound -- put text into a field -- go to another card cREVGeneralscriptChecksumُ B~ revUniqueID 1013210373427 bookmarks handlerList tempScript prevHandlermouseUpscriptSelection char 2 to 1script

 cover1` @yP exampleText cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013210382188 handlerListscriptSelection char 2 to 1 prevHandlermouseUp tempScriptscript

  coverBtns4 $on mouseUp if the short name of the target contains "cover" then set the opaque of the target to not the hilite of the target if not the opaque of the target then put the exampleText of the target into bg fld "example" else put empty into bg fld "example" end if end mouseUp DSelection Descriptionfalse cREVGeneralscriptChecksumVAlсO*g revUniqueID 1013213175054 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelectionscript

on mouseUp

if the short name of the target contains "cover" then

set the opaque of the target to not the hilite of the target

if not the opaque of the target then put the exampleText of the target into bg fld "example"

else put empty into bg fld "example"

end if

end mouseUp

cover1hL@HyR exampleTextfunction getStackPath stFileName set the itemDelimiter to "/" delete last item of stFileName return stFileName end getStackPath  cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013122071654 handlerListscriptSelection char 2 to 1 prevHandlermouseUp tempScriptscript

 ,cover2hL@y, exampleTextfunction getStackPath stFileName set the itemDelimiter to "/" delete last item of stFileName return stFileName end getStackPath  cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013535772848 handlerListscriptSelection char 1 to 0 prevHandlermouseUp tempScriptscript

 bcover3hL@y, exampleText cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013535772848 handlerListscriptSelection prevHandlermouseUp tempScriptscript

 coverBtns4$on mouseUp if the short name of the target contains "cover" then set the opaque of the target to not the hilite of the target if not the opaque of the target then put the exampleText of the target into bg fld "example" else put empty into bg fld "example" end if end mouseUp (`Selection Descriptionfalse cREVGeneralscriptChecksumVAlсO*g bookmarks revUniqueID 1013213175054 handlerListmouseUpscriptSelection char 11 to 10 prevHandlermouseUp tempScriptscript

on mouseUp

if the short name of the target contains "cover" then

set the opaque of the target to not the hilite of the target

if not the opaque of the target then put the exampleText of the target into bg fld "example"

else put empty into bg fld "example"

end if

end mouseUp

cover1` @,y& exampleText-- You call a Transcript function like this: put random(15) into myRandomNum -- or like this: put the random of 15 into myRandomNum cREVGeneralscriptChecksumُ B~ revUniqueID 1013122071654 bookmarks handlerList tempScript prevHandlermouseUpscriptSelection char 2 to 1script

 cover2` @Zy* exampleTextq-- Here is a valid function call for a custom function: put getStackPath(the filename of this stack) into myPath cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013210361565 handlerListscriptSelection char 2 to 1 prevHandlermouseUp tempScriptscript

  coverBtns4$on mouseUp if the short name of the target contains "cover" then set the opaque of the target to not the hilite of the target if not the opaque of the target then put the exampleText of the target into bg fld "example" else put empty into bg fld "example" end if end mouseUp CSelection Descriptionfalse cREVGeneralscriptChecksumVAlсO*g revUniqueID 1013213175054 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelectionscript

on mouseUp

if the short name of the target contains "cover" then

set the opaque of the target to not the hilite of the target

if not the opaque of the target then put the exampleText of the target into bg fld "example"

else put empty into bg fld "example"

end if

end mouseUp

"cover1` @Gy exampleTextfunction explode string repeat for each character nextChar in string put nextChar & space after explodedString end repeat return explodedString end explode -- enter in message box: put explode("This is really big news!") into fld "output" cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013122071654 handlerListscriptSelection prevHandlermouseUp tempScriptscript

! #cover1` @ny exampleTextfunction itemsToLines inputText repeat with x = 1 to number of items in inputText put item x of inputText into line x of outputText end repeat return outputText end itemsToLines -- enter in message box: answer itemsToLines("red,yellow,blue,green") cREVGeneralscriptChecksumُ B~ revUniqueID 1013210361565 bookmarks handlerList tempScript prevHandlermouseUpscriptSelection char 2 to 1script

! $cover1` @y6 exampleTextgfunction capitalize string,allWds if allWds is true then put number of words in string into limit else put 1 into limit repeat with i = 1 to limit put toUpper(char 1 of word i of string) into char 1 of word i of string end repeat return string end capitalize --enter in message box: put capitalize("this is a sentence.",false) into fld "output" cREVGeneralscriptChecksumُ B~ bookmarks revUniqueID 1013210373427 handlerListscriptSelection char 2 to 1 prevHandlermouseUp tempScriptscript

!  9output)h  cREVGeneral revUniqueID 1013546304447 bookmarks handlerListscriptSelection prevHandler tempScriptscript  \ blackbox T cREVGeneral revUniqueID 1014334240665U blackBoxbackKH black|Selection Descriptionfalse myFunction cREVGeneral revUniqueID 1014333024995 bookmarks handlerList tempScript prevHandlerscriptSelectionscript[fillinJBblackblack@{! cREVGeneral revUniqueID 1014333996159XNew Graphic 1KF  cREVGeneral revUniqueID 1014333857166YNew Graphic 2KF  cREVGeneral revUniqueID 1014333892882ZNew Graphic 1KF  cREVGeneral revUniqueID 1014333905436V movingBtneH white@<p&Selection Descriptionfalse0data>>cREVAnimationdataAnim16number7layer21rect283,305,395,343cREVAnimationdataAnim19number7layer21rect329,306,441,344cREVAnimationdataAnim22number7layer21rect374,308,486,346cREVAnimationdataAnim25number7layer21rect419,309,531,347cREVAnimationdataAnim28number7layer21rect464,310,576,348cREVAnimationdataAnimbase9 traversalOntrueinksrcCopythreeDfalse hiliteBordertruerect10,310,122,348 mnemonic0armFillfalse visitedIcon0 patterns showNametrue showIconfalsecolorsO204,0,0 208,208,208 255,255,255 0,0,0 255,255,255 172,172,172 169,169,169 0,0,0hilitedfalse sharedHilitetrueshadowfalse textAligncenterarmedfalsemenuMouseButton1 hilitedIcon0id1110altId0 labelWidth0number7 accelKey armedIcon0 textStyleplainlockLocfalse showHilitefalselabeldata>> autoHilitetruestyle transparent disabledIcon0 armBordertruename movingBtnicon0toolTiplayer21 accelTextvisibletrue cantSelectfalse borderWidth2 menuLines5margins4opaquefalse accelModscommand shadowOffset4defaultfalse menuName hiliteFilltrue showBorderfalse textSize24 disabledfalseautoArmfalse menuModefamily0 textFont Arial Black menuHistory1cREVAnimationdataAnim2number7layer21rect33,316,145,354cREVAnimationdataAnim29number7layer21rect479,310,591,348cREVAnimationdataAnimnumber1layer3rect160,314,272,352cREVAnimationdataAnim30number7layer21rect494,310,606,348cREVAnimationdataAnim15number7layer21rect268,304,380,342cREVAnimationdataAnim1number7layer14rect16,316,128,354cREVAnimationdataAnim,25,playStatedataAnim,1,playStatedataAnim,30,playStatedataAnim,29,playStatedataAnim,3,playStatedataAnim,32,playStatedataAnim,15,playStatedataAnim,,playStatedataAnim,19,playStatedataAnim,22,playStatedataAnim,2,playStatedataAnim,28,playStatedataAnim,allPropertiesrect layer numberdataAnim,31,playStatedataAnim,keyFrames%1, 2, 15, 16, 19, 22, 25, 28, 29, 30,dataAnim,33,playStatedataAnim,16,playState cREVGeneral revUniqueID 1014333138659 W blackBoxKH black|Selection Descriptionfalse myFunction cREVGeneral bookmarks revUniqueID 1014333830606 handlerListscriptSelection prevHandler tempScriptscript]ResetcPon mouseUp

put empty into fld "example"

repeat with x = 1 to number of cd btns

set the opaque of cd btn x to true

set the hilite of cd btn x to false

end repeat

if there is a cd fld 1 then

repeat with x = 1 to number of cd flds

put empty into cd fld x

end repeat

end if

end mouseUp

^ResetthiscardcP>on mouseUp resetAnim send mouseUp to btn "reset" end mouseUp @4$Selection Descriptionfalse6Reset cREVGeneralscriptChecksum\Ӥ]Im bookmarks revUniqueID 1013121077929 handlerListmouseUpscriptSelection char 51 to 50 prevHandlermouseUp tempScriptscript

on mouseUp

resetAnim

send mouseUp to btn "reset"

end mouseUp

:output)h  cREVGeneral bookmarks revUniqueID 1013546304447 handlerList tempScript prevHandlerscriptSelectionscript !