home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global L, w, r, p, bh, mh, nowtime, endtime, nowrate, mdown, yubi, activsp, activsam, activpage
-
- on beginSprite me
- L = 30
- w = 256
- r = 286
- end
-
- on mouseEnter me
- cursor(yubi)
- end
-
- on mouseLeave me
- cursor(0)
- end
-
- on mouseDown me
- mdown = spriteNum
- cursor = 0
- end
-
- on mouseUp me
- mdown = 0
- cursor = 0
- end
-
- on mouseUpOutSide me
- mdown = 0
- cursor = 0
- end
-
- on exitFrame me
- if mdown = spriteNum then
- mh = mouseH()
- if mh < L then
- mh = L
- else
- if r < mh then
- mh = r
- end if
- end if
- p = float(mh - L) / float(w)
- mt = float(endtime) * float(p)
- sprite(100).movieRate = 0
- sprite(100).visible = 1
- sprite(100).movieTime = mt
- end if
- if nowtime <> 0 then
- p = float(nowtime) / float(endtime)
- bh = L + (float(p) * float(w))
- set the locH of sprite 28 to bh
- updateStage()
- else
- set the locH of sprite 28 to L
- updateStage()
- end if
- pass()
- end
-