home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gnFirstSprite
- ClosePopup()
- set nTextVPos to the locV of sprite the clickOn
- set nTextHeight to the textHeight of field the castNum of sprite the clickOn
- set n to ((the mouseV - nTextVPos) / nTextHeight) + 1
- if n < 1 then
- exit
- end if
- set sName to line n of the text of field the castNum of sprite the clickOn
- if sName = EMPTY then
- exit
- end if
- set sTextName to alltrim(MakeUtilityFileName(sName))
- set the puppet of sprite (gnFirstSprite + 2) to 1
- set the locV of sprite (gnFirstSprite + 2) to nTextVPos + (nTextHeight * n) - (nTextHeight / 2)
- updateStage()
- LoadPopup("util", sName, "clips\sharewa\" & sTextName & ".bmp", EMPTY, 0)
- end
-