home *** CD-ROM | disk | FTP | other *** search
- global aktuell, rl, rl_no, ol, aktAnzeige, JobToDo
-
- on idle
- global myRo
- set myRo to rollOver()
- end
-
- on exitFrame
- if not (aktuell = the frameLabel) then
- getthelists(the frameLabel)
- end if
- checkRects()
- MenueButtons()
- go(the frame)
- end
-
- on mouseDown
- continue()
- pass()
- end
-
- on getthelists which
- set aktuell to the frameLabel
- set aktAnzeige to 0
- set mmember to the number of member which
- set rl to value(the text of member mmember of castLib 1)
- set rl_no to count(rl)
- set ol to the text of member (mmember + 10) of castLib 1
- end
-
- on checkRects
- set mouseloc to point(the mouseH, the mouseV)
- repeat with i = 1 to rl_no
- if inside(mouseloc, getAt(rl, i)) then
- Anzeige(i)
- exit
- end if
- end repeat
- ClearAnzeige()
- end
-
- on Anzeige which
- if not (aktAnzeige = which) then
- if not ((the frameLabel = "D") and (which < 4)) then
- puppetSound("Einrasten")
- updateStage()
- end if
- set x to line which of ol
- set the itemDelimiter to ";"
- set y to item 1 of x
- if not ((the frameLabel = "D") and (which < 4)) then
- set the text of field "Ort" to y
- puppetSprite(47, 1)
- set the locH of sprite 47 to the mouseH + 10
- set the locV of sprite 47 to the mouseV + 6
- updateStage()
- end if
- if (y contains "- ") or (y contains ". ") then
- set y to item 6 of x
- end if
- set the text of field "Stadt" to y
- set the text of field "tel" to item 2 of x
- set aktAnzeige to which
- set the itemDelimiter to ","
- end if
- end
-
- on ClearAnzeige x
- puppetSprite(47, 0)
- set the text of field "Stadt" to " "
- set the text of field "tel" to " "
- set the text of field "Ort" to " "
- set aktAnzeige to 0
- end
-