home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1995 November
/
SHOWCASE.ISO
/
files
/
support.dir
/
00129_Script_129
< prev
next >
Wrap
Text File
|
1994-12-18
|
3KB
|
80 lines
-- òò -- Lingo coding by David K. Anderson and Terry R. Schussler -- òò --
--=============================================--
-- SUPPORT.DIR movie script handlers --
--=============================================--
global gPTimerSet, gPresentationTime, gPresentationLight, gYellowSet, gRedSet, gLightColor
on startmovie
global gserviceList, gstartVar, gPressed
set the preLoadEventAbort = TRUE
set the preLoadRAM = FALSE
put ["conference","on-line","access","training","developer","consulting","major","user",┬
"international","education","reseller"] into gserviceList
set the visible of sprite 17 to true
puppetSprite 17, TRUE
set gstartVar = 0
put 0 into gPressed
global cAudioLevel
put 46 into cAudioLevel -- channel for volume indicator
global tProductSelect, tSectionSelect, tFirsttimeFlag
global soundlevel
if voidP(soundlevel) then put 3 into soundlevel
global lastSprite
put 0 into lastSprite
if gPTimerSet then
puppetSprite gPresentationLight, 1
set the castnum of sprite gPresentationLight = the number of cast gLightColor
updateStage
end if
end
-- this routine handles a Support button selection and jumps to the appropriate frame if necessary
on supportSelect
global tProductPressed, tSectionPressed, tProductSelect, tSectionSelect, tFirsttimeFlag
global gpressed,gserviceList, gstartVar
puppetSound "click"
put the clickOn into whichSprite
set gpressed = whichSprite
puppetSprite whichSprite, TRUE
set the castnum of sprite whichSprite = the number of cast ("Button " & string(whichsprite - 1) && "down")
repeat with n = 2 to 12
if n <> whichSprite then puppetSprite n, FALSE
end repeat
updateStage
go to frame getAt(gservicelist,whichSprite-1)
end supportSelect
on changeHotspot
-- Capture the sprite info before anything can change the value
put the mouseCast into whichCast
put the clickOn into whichSprite
puppetsprite whichSprite, 1
put (the name of cast whichCast) into myName
put the last word of myName into myNum
put not value(myNum) into word (the number of words in myName) of myName
set the castNum of sprite whichSprite = cast myName
updatestage
end changeHotspot
on enterFrame
if gPTimerSet then
if the timer > (gPresentationTime * 3600) AND not gRedSet then
set gLightColor = "Red timer light lit"
set the castnum of sprite gPresentationLight = the number of cast gLightColor
set gRedSet = TRUE
exit
end if
if the timer > ((gPresentationTime * 3600) - 7200) AND not gYellowSet then
set gLightColor = "Yellow timer light lit"
set the castnum of sprite gPresentationLight = the number of cast gLightColor
set gYellowSet = TRUE
end if
end if
end