home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set mousePos to the mouseH
- set offset to mousePos - the locH of sprite 9
- set max to 350
- repeat while the stillDown = 1
- set ButtonPosition to the mouseH - offset
- if ButtonPosition > max then
- set the locH of sprite 9 to ButtonPosition
- if the locH of sprite 9 > 546 then
- set the locH of sprite 9 to 546
- else
- if the locH of sprite 9 < 350 then
- set the locH of sprite 9 to 350
- end if
- end if
- end if
- set max to the locH of sprite 9
- set the height of sprite 5 to (the locH of sprite 9 / 1.25) - 89
- set the width of sprite 5 to the height of sprite 5 * 1.33300000000000018
- updateStage()
- end repeat
- end
-