home *** CD-ROM | disk | FTP | other *** search
- on setupMainButtons
- global mainButtonObject, gCardioDemo
- set mainButtonObject to new(script "mainButtonObject", 5, ["m1", "m2", "m3", "m4", "m5", "m6", "m7", "m8", "m9", "m10", "m11"])
- end
-
- on mainButtonAction whichOne
- global gCardioDemo
- set whichOne to string(whichOne)
- if length(whichOne) = 1 then
- put "0" before whichOne
- end if
- if (gCardioDemo = 1) and (whichOne <> "02") then
- return
- end if
- gomovie(whichOne & "_0_00")
- end
-
- on updateMainButtons
- global mainButtonObject
- updateButton(the mainButtons of mainButtonObject)
- end
-
- on mainButtonsMouseUp
- global mainButtonObject
- buttonMouseUp(the mainButtons of mainButtonObject)
- end
-