home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global whSquareH, whSquareV, moviesList, frameList, goWhere, choiceMade
- set goWhere to 0
- set mh to the mouseH
- set mv to the mouseV
- set sph to the locH of sprite the clickOn
- set spv to the locV of sprite the clickOn
- set unitWidth to 28
- set unitHeight to 18
- set offsetH to -167
- set offsetV to 0
- set whSquareH to (mh - sph - (offsetH - unitWidth)) / unitWidth
- set whSquareV to (mv - spv - (offsetV - unitHeight)) / unitHeight
- if (whSquareV <= 3) or (whSquareV = 7) then
- if (whSquareV <= 2) and (whSquareH <= 0) then
- set the lineSize of sprite 43 to 2
- set the height of sprite 43 to (unitHeight * 2) - 1
- set the width of sprite 43 to 78
- set the locH of sprite 43 to sph - 248
- set the locV of sprite 43 to 20
- set goWhere to 1
- updateStage()
- end if
- if (whSquareV >= 4) and (whSquareV <= 11) and (whSquareH >= 1) and (whSquareH <= 7) then
- set the castNum of sprite 43 to cast "qdblue2"
- set the lineSize of sprite 43 to 2
- set the height of sprite 43 to unitHeight - 2
- set the width of sprite 43 to unitWidth - 2
- set the locH of sprite 43 to sph + (offsetH - unitWidth) + (whSquareH * unitWidth) + 1
- set the locV of sprite 43 to spv + (offsetV - unitHeight) + (whSquareV * unitHeight) + 1
- set goWhere to 2
- updateStage()
- end if
- if (whSquareV >= 4) and (whSquareV <= 11) and (whSquareH < 1) then
- set the castNum of sprite 43 to cast "qdblue2"
- set the lineSize of sprite 43 to 2
- set the height of sprite 43 to unitHeight - 2
- set the width of sprite 43 to 78
- set the locH of sprite 43 to sph - 248
- set the locV of sprite 43 to spv + (offsetV - unitHeight) + (whSquareV * unitHeight) + 1
- set goWhere to 3
- updateStage()
- end if
- startTimer()
- repeat while the timer < 20
- end repeat
- setOffStage("42,43")
- set the castNum of sprite 41 to cast "gridIcon"
- updateStage()
- if goWhere = 1 then
- setPuppets(1, 48, 0)
- set choiceMade to 0
- go(1, "topLevel.dir")
- end if
- if goWhere = 2 then
- if choiceMade = 1 then
- clearLists()
- else
- setOffStage("13,20,23,24,25,31,33,34,43,44,45,46")
- set the castNum of sprite 40 to cast "sectionChoose"
- end if
- if the movieName = string(item whSquareV - 3 of moviesList) then
- setPuppets(2, 12, 0)
- setPuppets(15, 18, 0)
- go(string(item whSquareH of frameList))
- else
- setPuppets(2, 12, 0)
- go(string(item whSquareH of frameList), string(item whSquareV - 3 of moviesList))
- end if
- end if
- if goWhere = 3 then
- setPuppets(1, 48, 0)
- set choiceMade to 0
- if the movieName = string(item whSquareV - 3 of moviesList) then
- go(1)
- else
- go(1, string(item whSquareV - 3 of moviesList))
- end if
- end if
- else
- displayMessage()
- end if
- end
-