home *** CD-ROM | disk | FTP | other *** search
- on doPopMenu spriteNum, h, v
- set the visible of sprite spriteNum to 1
- set the locH of sprite spriteNum to h
- set the locV of sprite spriteNum to v
- updateStage()
- set cNum to the castNum of sprite spriteNum
- set lastSelection to 0
- set len to the number of lines in field cNum
- repeat while the stillDown
- set mc to the mouseLine
- if (0 < mc) and (mc <= len) and rollOver(spriteNum) then
- if mc <> lastSelection then
- set lastSelection to mc
- hilite line mc of field cNum
- updateStage()
- end if
- next repeat
- end if
- if mc <> lastSelection then
- set lastSelection to -1
- hilite line len + 1 of field cNum
- updateStage()
- end if
- end repeat
- set the visible of sprite spriteNum to 0
- set the visible of sprite 47 to 0
- updateStage()
- if line lastSelection of field cNum <> EMPTY then
- return lastSelection
- else
- return -1
- end if
- end
-