home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
pc
/
files
/
invest.dir
/
00002_Script_2
next >
Wrap
Text File
|
1997-05-26
|
3KB
|
94 lines
global gInstructText,gDescriptionText, gorigcast, gDiplaycast, gOrigHilite, gActiveText, gDisplayFieldLines
global gNumOfInstructLns, gNumOfDescriptLns, gInstructionsUP, gTopDiplayLn, gTotalLine
--------------------------------------------------------------------------------------------------------
on startmovie
set the textHeight of field "DisplayText" = 12
end startmovie
on scrollup
set the castnum of sprite 28 = 914
updatestage
repeat while the mousedown
if (gTopDiplayLn > 1) then
set gTopDiplayLn = gTopDiplayLn - 1
set the text of cast gDiplaycast = line gTopDiplayLn to (gTopDiplayLn + gDisplayFieldLines) of gActiveText
end if
end repeat
set the castnum of sprite 28 = 0
updatestage
end scrollup
--------------------------------------------------------------------------------------------------------
on scrolldown
set the castnum of sprite 30 = 913
updatestage
repeat while the mousedown
if ((gTopDiplayLn + gDisplayFieldLines) <= gTotalLine) then
set gTopDiplayLn = gTopDiplayLn + 1
set the text of cast gDiplaycast = line gTopDiplayLn to (gTopDiplayLn + gDisplayFieldLines) of gActiveText
end if
end repeat
set the castnum of sprite 30 = 0
updatestage
end scrolldown
--------------------------------------------------------------------------------------------------------
on InstructionToggle
if the mousev > 418 then
set the text of cast gDiplaycast = gDescriptionText
puppetsprite 33, true
set the castnum of sprite 33 = gOrigHilite + 1
puppetsprite 26, true
set the castnum of sprite 26 = 0
set gTotalLine = gNumOfDescriptLns
set gActiveText = gDescriptionText
else
set the text of cast gDiplaycast = gInstructText
puppetsprite 33, false
puppetsprite 26, false
set gTotalLine = gNumOfInstructLns
set gActiveText = gInstructText
end if
set gTopDiplayLn = 1
updatestage
end InstructionToggle
--------------------------------------------------------------------------------------------------------
on setuptext
set gTopDiplayLn = 1
set gDisplayFieldLines = 30
set gDiplaycast = the number of cast "DisplayText"
set gorigcast = the castnum of sprite 26
set gOrigHilite = the castnum of sprite 33
set gInstructText = the text of cast gorigcast
set gNumOfInstructLns = the number of lines of gInstructText
set gDescriptionText = the text of cast (gorigcast + 1)
set gNumOfDescriptLns = the number of lines of gDescriptionText
set the text of cast gDiplaycast = gInstructText
set gTotalLine = gNumOfInstructLns
set gActiveText = gInstructText
end setuptext
--------------------------------------------------------------------------------------------------------