home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today (BR) Volume 2 #6
/
CDRTV2N6.iso
/
makers
/
search.dir
/
00031_Script_31
< prev
next >
Wrap
Text File
|
1996-03-11
|
2KB
|
51 lines
on mouseDown
global Chapter,Sub,LastLine,ThisSubChapter,LastSubLine,SavedNum
put the mouseLine into theLine
if theLine <> (-1) then
if LastLine <> EMPTY then put LastLine - 20 into dif
else put 0 into dif
set the foreColor of field the castNum of sprite the clickOn to 1
set the foreColor of line theLine of field the castNum of sprite the clickOn to 201
set the itemDelimiter to "@"
if Chapter <> 7 then
put (theLine + dif) into Sub
put item Sub of field (Chapter&&"sub") into xx
put item Sub of field (Chapter&&"go") into SavedNum
else
if value(line theLine of field the castNum of sprite the clickOn) < 1952 then
put (theLine + dif) into Sub
put item Sub of field (Chapter&&"sub A") into xx
put item Sub of field (Chapter&&"go") into SavedNum
else
put (theLine + dif - 51) into Sub
put item Sub of field (Chapter&&"sub B") into xx
put item (theLine + dif) of field (Chapter&&"go") into SavedNum
end if
end if
if line (the number of lines of xx) of xx = EMPTY then delete line the number of lines of xx of xx
put xx into ThisSubChapter
if the number of lines of xx > 20 then put 20 into LastSubLine
else put 0 into LastSubLine
set the visible of sprite 11 to FALSE
put line 1 to 20 of xx into field "subSubList"
put item Chapter of field "GreenSquarSize" into temp
set the width of sprite 10 to value(line Sub of temp)
set the height of sprite 10 to (the number of lines of field "subSubList") * 16
set the locH of sprite 10 to (the right of sprite 13) + 20
set the locH of sprite 11 to (the right of sprite 13) + 20
updateStage
set the visible of sprite 11 to TRUE
if LastSubLine = 0 then
if the locH of sprite 17 < 1000 then
set the locH of sprite 17 to (the locH of sprite 17) + 1000
set the locH of sprite 18 to the locH of sprite 17
end if
else
placeArrow 10,17
end if
set the itemDelimiter to ","
end if
end