home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- UpdateCursor([[l(), LC()], [R(), RC()], [4, OC()], [LHSpageEdge(), OpenHandCursor()], [RHSpageEdge(), OpenHandCursor()], [5, OC()], [6, OC()], [7, OC()], [8, OC()], [9, OC()]])
- go(the frame)
- end
-
- on LapTopIcon
- return 41
- end
-
- on upperH
- return 470
- end
-
- on lowerH
- return 160
- end
-
- on DraggingPage beforeH, startH
- SelectCursor(ClosedHandCursor())
- repeat while the mouseDown
- set desiredH to beforeH + (the mouseH - startH)
- if (desiredH > lowerH()) and (desiredH < upperH()) then
- set the locH of sprite InHandSprite() to desiredH
- updateStage()
- end if
- end repeat
- OpenHandCursor()
- end
-
- on SnapPage theCast
- set SnapToLHS to the locH of sprite InHandSprite() < 320
- KillBitMap(InHandSprite())
- if SnapToLHS then
- push(LHSpile, theCast)
- else
- push(RHSpile, theCast)
- end if
- end
-
- on RHSGrabDrag s, startH, startV
- global LHSpile, RHSpile
- set beforeH to the locH of sprite s
- set beforeV to the locV of sprite s
- set theCast to pop(RHSpile)
- InstallBitMap(InHandSprite(), theCast, beforeH, beforeV)
- DraggingPage(beforeH, startH)
- SnapPage(theCast)
- end
-
- on LHSGrabDrag s, startH, startV
- global LHSpile, RHSpile
- set beforeH to the locH of sprite s
- set beforeV to the locV of sprite s
- set theCast to pop(LHSpile)
- InstallBitMap(InHandSprite(), theCast, beforeH, beforeV)
- DraggingPage(beforeH, startH)
- SnapPage(theCast)
- end
-
- on mouseDown
- global RHSpile, LHSpile, PagesLoaded
- set spriteHit to the clickOn
- set hitH to the mouseH
- set hitV to the mouseV
- if PointingAt(RHSpageEdge()) then
- RHSGrabDrag(spriteHit, hitH, hitV)
- end if
- if PointingAt(LHSpageEdge()) then
- LHSGrabDrag(spriteHit, hitH, hitV)
- end if
- if PointingAt(left()) then
- if PagesLoaded then
- FreeSprites(LHSpile)
- FreeSprites(RHSpile)
- end if
- go("Main")
- end if
- if PointingAt(right()) then
- if PagesLoaded then
- set the locH of sprite 3 to 322
- FreeSprites(LHSpile)
- FreeSprites(RHSpile)
- end if
- set the volume of sound 1 to 255
- set the volume of sound 2 to 255
- go("Video")
- end if
- if p(4) then
- sound playFile 1, "NICK.AIF"
- play frame "song"
- exit
- end if
- set YesLeft to PointingAt(LHStext())
- set YesRight to PointingAt(RHStext())
- end
-