home *** CD-ROM | disk | FTP | other *** search
- on popupcode
- global gFromFrame, gOldLine, gLowlightColor, languagechosen
- set the member of sprite 47 to member "SSvgBanner" of castLib languagechosen
- set the ink of sprite 47 to 36
- set the locH of sprite 47 to 6
- set the locV of sprite 47 to 456
- updateStage()
- set the blend of sprite 44 to 25
- set the visible of sprite 40 to 0
- set the visible of sprite 48 to 0
- ContentsStop()
- end
-
- on checkHPan
- global gPanoMovieObj, languagechosen
- if objectp(gPanoMovieObj) then
- put gPanoMovieObj(mGetHPanAngle) into field "HPanAngle"
- put gPanoMovieObj(mGetVPanAngle) into field "VPanAngle"
- put gPanoMovieObj(mGetZoomAngle) into field "ZoomAngle"
- put gPanoMovieObj(mGetNodeID) into field "Node ID"
- end if
- if the text of cast "Node ID" > 3 then
- nothing()
- else
- set tempVarName to "ssvgnode" & the text of cast "Node ID"
- set the member of sprite 14 to member tempVarName of castLib languagechosen
- end if
- checknodes()
- UpdateText(the text of cast "Node ID")
- end
-
- on UpdateText Node
- case Node of
- "1":
- nodeOneUpdate()
- "2":
- nodeTwoUpdate()
- "3":
- nodeThreeUpdate()
- end case
- end
-
- on nodeOneUpdate
- set tempValue to integer(the text of cast "HPanAngle" * 100) / 100
- set PointValues to [360, 356, 305, 224, 169, 123, 36, 0]
- repeat with counter = 1 to 7
- if (tempValue < getAt(PointValues, counter)) and (tempValue > getAt(PointValues, counter + 1)) then
- set tempYU to "ssvgtextone" & counter
- set the text of member "ssvgtextbox" to the text of member tempYU
- end if
- end repeat
- end
-
- on nodeTwoUpdate
- set tempValue to integer(the text of cast "HPanAngle" * 100) / 100
- set PointValues to [360, 349, 304, 257, 213, 175, 122, 79, 33, 0]
- repeat with counter = 1 to 9
- if (tempValue < getAt(PointValues, counter)) and (tempValue > getAt(PointValues, counter + 1)) then
- set tempYU to "ssvgtexttwo" & counter
- set the text of member "ssvgtextbox" to the text of member tempYU
- end if
- end repeat
- end
-
- on nodeThreeUpdate
- set tempValue to integer(the text of cast "HPanAngle" * 100) / 100
- set PointValues to [360, 349, 307, 262, 215, 170, 123, 76, 32, 0]
- repeat with counter = 1 to 9
- if (tempValue < getAt(PointValues, counter)) and (tempValue > getAt(PointValues, counter + 1)) then
- set tempYU to "ssvgtextthree" & counter
- set the text of member "ssvgtextbox" to the text of member tempYU
- end if
- end repeat
- end
-