home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- if rollover(20) then
- h = 0
- stageWidth = 100
- speed = (h - (stageWidth / 2)) / 2
- xpos = the locH of sprite 20
- xpos = xpos - speed
- set the locH of sprite 20 to xpos
- else
- h = 0
- stageWidth = 100
- speed = (h - (stageWidth / 2)) / 10
- xpos = the locH of sprite 20
- xpos = xpos + speed
- set the locH of sprite 20 to xpos
- set the constraint of sprite 20 to 21
- end if
- end
-