REVO2700 d FunctionsLect Pfunction 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 U Geneva U Geneva W Geneva U New York U New York U Monaco U Lucida Grande U Courier U Courier U Times New Roman W New York U New York W New York U Lucida Grande W Lucida Grande U Arial Black U Arial Black U Times New Roman W Times New Roman W Arial Black U Lucida Grande cREVGeneral scriptChecksum ;`-Y6Gt bookmarks handlerList ,getStackPath explode itemsToLines capitalizescriptSelection char 492 to 764prevHandler getStackPathtempScript script
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 prevHandler scriptSelection 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 cREVGeneral scriptChecksum H˳d@j bookmarks handlerList openCard resetAnimtempScript prevHandler openCardscriptSelection char 419 to 418scripton 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,playAllFrames falsecurrentEdit dataAnimdataAnim,calculatedTotal 30dataAnim,objectsList button "movingBtn"dataAnim,frameNames % 30,endFrame 15,midFrame 1,startFramelist dataAnimdataAnim,palindrome falsedataAnim,currentFrame 1dataAnim,frameRate 10dataAnim,repeatCount 0dataAnim,status paused \ ] ^ @ 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 cREVGeneral scriptChecksum H\$Elc bookmarks handlerList readLinestempScript prevHandler scriptSelection char 613 to 612script 9-- 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 handlerList scriptSelection char 1 to 0prevHandler tempScript script : rightarrowBlue.gif @\ sGIF89a 1f3 ̙f3 f3 ffffff3f 3333f333 f 3 f3 ̙f3 ̙̙̙̙f̙3̙ ffffff3f 3333f333 f 3 ̙f3 ̙̙f3 ̙f3 ff̙ffff3f 33̙33f333 ̙ f 3 ffffff3f fff̙fff3f ffffff3f fffffffffff3ff f3f3f3f3ff33f3 f f f f ff 3f 3333f333 333̙3f333 3333f333 3f3f3f3ff3f33f 33333333f33333 3 3 3 3 f3 33 f 3 ̙ f 3 f 3 f f f ff f3 f 3 3 3 3f 33 3 f 3 w U D " w U D " w U D " ݻwwwUUUDDD""" ! , P H j DPABTp b(q#9G L1?_ty̏6)fyC<58`@ ; cREVGeneral revUniqueID 1013121048233 leftarrowBlue.gif @N rGIF89a 1f3 ̙f3 f3 ffffff3f 3333f333 f 3 f3 ̙f3 ̙̙̙̙f̙3̙ ffffff3f 3333f333 f 3 ̙f3 ̙̙f3 ̙f3 ff̙ffff3f 33̙33f333 ̙ f 3 ffffff3f fff̙fff3f ffffff3f fffffffffff3ff f3f3f3f3ff33f3 f f f f ff 3f 3333f333 333̙3f333 3333f333 3f3f3f3ff3f33f 33333333f33333 3 3 3 3 f3 33 f 3 ̙ f 3 f 3 f f f ff f3 f 3 3 3 3f 33 3 f 3 w U D " w U D " w U D " ݻwwwUUUDDD""" ! , O H D(PB(!ń%fT8p#Gd&7@R K.S:$$MkV9K<2 ; cREVGeneral revUniqueID 1013121347807 leftarrowRed.gif @( rGIF89a 1f3 ̙f3 f3 ffffff3f 3333f333 f 3 f3 ̙f3 ̙̙̙̙f̙3̙ ffffff3f 3333f333 f 3 ̙f3 ̙̙f3 ̙f3 ff̙ffff3f 33̙33f333 ̙ f 3 ffffff3f fff̙fff3f ffffff3f fffffffffff3ff f3f3f3f3ff33f3 f f f f ff 3f 3333f333 333̙3f333 3333f333 3f3f3f3ff3f33f 33333333f33333 3 3 3 3 f3 33 f 3 ̙ f 3 f 3 f f f ff f3 f 3 3 3 3f 33 3 f 3 w U D " w U D " w U D " ݻwwwUUUDDD""" ! , O HD(PB(!ń%fT8p#Gd&7@R K.S:$$MkV9K<2 ; cREVGeneral revUniqueID 1013121358883 rightarrowRed.gif @: sGIF89a 1f3 ̙f3 f3 ffffff3f 3333f333 f 3 f3 ̙f3 ̙̙̙̙f̙3̙ ffffff3f 3333f333 f 3 ̙f3 ̙̙f3 ̙f3 ff̙ffff3f 33̙33f333 ̙ f 3 ffffff3f fff̙fff3f ffffff3f fffffffffff3ff f3f3f3f3ff33f3 f f f f ff 3f 3333f333 333̙3f333 3333f333 3f3f3f3ff3f33f 33333333f33333 3 3 3 3 f3 33 f 3 ̙ f 3 f 3 f f f ff f3 f 3 3 3 3f 33 3 f 3 w U D " w U D " w U D " ݻwwwUUUDDD""" ! , P H G DPABTp b(q#9G L1?_ty̏6)fyC<58`@ ; cREVGeneral revUniqueID 1013121370793 bgGrp 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 Selection Description false cREVGeneral scriptChecksum 1KK^bb bookmarks revUniqueID 1013121672950handlerList openCard mouseUpscriptSelection prevHandler openCardtempScript scripton 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
topic h @ &