home *** CD-ROM | disk | FTP | other *** search
- global gPictureSprite, gCurrentSection, gCurrentPicture, gNumOPics, gProductSelect, gMacIDSprite, gWindowsIDSprite, gDemoButtonSprite, gLaunchQTButton
-
- on mouseDown
- set the puppet of sprite the clickOn to 1
- repeat while the stillDown
- if rollOver(the clickOn) then
- set the castNum of sprite the clickOn to the number of cast "GDemoLeft lit"
- updateStage()
- next repeat
- end if
- set the castNum of sprite the clickOn to the number of cast "GDemoLeft"
- updateStage()
- end repeat
- end
-
- on mouseUp
- if rollOver(the clickOn) then
- set the castNum of sprite the clickOn to the number of cast "GDemoLeft"
- updateStage()
- set the puppet of sprite the clickOn to 0
- set gCurrentPicture to gCurrentPicture - 1
- if gCurrentPicture < 1 then
- set gCurrentPicture to gNumOPics
- end if
- set the castNum of sprite gPictureSprite to the number of cast (string(gCurrentSection) & string(gCurrentPicture))
- set tempList to getaProp(gGalleryList, gCurrentSection)
- if gCurrentPicture > 1 then
- set the castNum of sprite gLaunchQTButton to the number of cast "PlayQT"
- set gProductSelect to getAt(tempList, gCurrentPicture - 1)
- set sectionFlags to getProp(gProductList, gProductSelect)
- if getAt(sectionFlags, 1) then
- set the castNum of sprite gMacIDSprite to the number of cast "macID lit"
- else
- set the castNum of sprite gMacIDSprite to the number of cast "macID"
- end if
- if getAt(sectionFlags, 2) then
- set the castNum of sprite gWindowsIDSprite to the number of cast "windowsID lit"
- else
- set the castNum of sprite gWindowsIDSprite to the number of cast "windowsID"
- end if
- if the machineType <> 256 then
- if getAt(sectionFlags, 3) then
- set the castNum of sprite gDemoButtonSprite to the number of cast "GoDemo"
- else
- set the castNum of sprite gDemoButtonSprite to the number of cast "GoDemo lit"
- end if
- exit
- else
- if getAt(sectionFlags, 4) then
- set the castNum of sprite gDemoButtonSprite to the number of cast "GoDemo"
- else
- set the castNum of sprite gDemoButtonSprite to the number of cast "GoDemo lit"
- end if
- exit
- end if
- else
- set gProductSelect to #null
- set the castNum of sprite gLaunchQTButton to the number of cast "NullPlay"
- set the castNum of sprite gMacIDSprite to the number of cast "macID"
- set the castNum of sprite gWindowsIDSprite to the number of cast "windowsID"
- set the castNum of sprite gDemoButtonSprite to the number of cast "GoDemo lit"
- end if
- else
- set the castNum of sprite the clickOn to the number of cast "GDemoLeft"
- set the puppet of sprite the clickOn to 0
- end if
- end
-