home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazine 28 Bonus
/
CDRomMagazine-SoftKey-ArtPassion-FrenchVersion-Win31Mac.bin
/
data
/
crmuspl.dir
/
00018_Script_18
< prev
next >
Wrap
Text File
|
1996-05-26
|
1KB
|
46 lines
on getColorSound
global RGBList
set colorInfo = the text of cast "colorCodes"
repeat with i = 1 to the number of lines in colorInfo
set redID = item 1 of line i of colorInfo
set greenID = item 2 of line i of colorInfo
set blueID = item 3 of line i of colorInfo
if RGBList = [redID,greenID,blueID] then
set sound = item 4 of line i of colorInfo
puppetSound sound
end if
end repeat
end
on getColorCheck
global RGBList,fingerCursor
set colorInfo = the text of cast "colorCodes"
set test = 0
repeat with i = 1 to the number of lines in colorInfo
set redID = item 1 of line i of colorInfo
set greenID = item 2 of line i of colorInfo
set blueID = item 3 of line i of colorInfo
if RGBList = [redID,greenID,blueID] then
set test = test + 1
end if
end repeat
if test = 0 then
set the cursor of sprite 4 to -1
else
set the cursor of sprite 4 to fingerCursor
end if
end