home *** CD-ROM | disk | FTP | other *** search
- property myTimer, myCounter, curs, mouseBlocked
- global gObj1, gObj2
-
- on new me, selectionList
- set curs to 0
- set myCounter to 1
- set myTimer to the ticks + 6
- return me
- end
-
- on update me, noSelectRect
- if mouseBlocked then
- set the mouseDownScript to EMPTY
- set the mouseUpScript to EMPTY
- set mouseBlocked to 0
- end if
- set theSelection to the theSelection of gObj1
- if the ticks > myTimer then
- set myCounter to (myCounter + 1) mod 8
- if voidp(noSelectRect) then
- if count(theSelection) then
- set the pattern of member 62 to myCounter + 57
- end if
- end if
- set myTimer to the ticks + 6
- end if
- if the mouseUp and count(theSelection) and not (the rollOver = 114) then
- if not inside(point(the mouseH, the mouseV), the frameRect of gObj2) then
- if not (curs = -1) then
- cursor(-1)
- set curs to -1
- end if
- else
- repeat with i in theSelection
- if inside(point(the mouseH, the mouseV), the rect of sprite i) then
- if not (curs = 260) then
- cursor(260)
- set curs to 260
- end if
- set f to 1
- exit repeat
- end if
- end repeat
- if not f then
- if not (curs = -1) then
- cursor(-1)
- set curs to -1
- end if
- end if
- end if
- end if
- end
-