home *** CD-ROM | disk | FTP | other *** search
- property numLabels, movieEnd, lastTick
- global labelNames, labelFrames
-
- on new me
- initProps(me)
- return me
- end
-
- on initProps me
- set numLabels to the number of lines in field "LabelField"
- set lastTick to numLabels + 1
- set movieEnd to the lastFrame
- end
-
- on getFrame me, lNum
- if lNum = 0 then
- return 1
- else
- if lNum = lastTick then
- return movieEnd
- else
- return getAt(labelFrames, lNum)
- end if
- end if
- end
-
- on lastOne me
- set nowFrame to the frame
- repeat with i = numLabels down to 1
- set thisMarker to getAt(labelFrames, i)
- if nowFrame > thisMarker then
- return thisMarker
- end if
- end repeat
- return 1
- end
-
- on nextOne me
- set nowFrame to the frame
- repeat with i = 1 to numLabels
- set thisMarker to getAt(labelFrames, i)
- if nowFrame < thisMarker then
- return thisMarker
- end if
- end repeat
- return movieEnd
- end
-