home *** CD-ROM | disk | FTP | other *** search
Wrap
property myButton, myAsset, myType, mem, memOn, memDn global seed, menuIndex, submenuIndex, fd, currentAsset, Tile, isWallpaper, dTemplate, lastTemplate on getPropertyDescriptionList me description = [:] addProp(description, #myButton, [#default: 1, #format: #integer, #comment: "My Button #: "]) return description end on beginSprite me sprite(me.spriteNum).cursor = [3, 4] selfUpdate(me) end on selfUpdate me if menuIndex = 0 then sprite(me.spriteNum).visible = 0 else if submenuIndex <> 0 then if seed[#mainmenu][menuIndex][#submenu][submenuIndex][#buttonList] <> VOID then if seed[#mainmenu][menuIndex][#submenu][submenuIndex][#buttonList].count < myButton then sprite(me.spriteNum).visible = 0 else b = seed[#mainmenu][menuIndex][#submenu][submenuIndex][#buttonList][myButton] case b[1] of #open: sprite(me.spriteNum).member = member("button_open") if b.count > 1 then myAsset = b[2] else myAsset = EMPTY end if myType = 3 sprite(me.spriteNum).visible = 1 #installbkg: sprite(me.spriteNum).member = member("button_install") myAsset = EMPTY myType = 5 sprite(me.spriteNum).visible = 1 #watch: sprite(me.spriteNum).member = member("button_watch") myAsset = seed[#mainmenu][menuIndex][#submenu][submenuIndex][#videos] myType = 6 sprite(me.spriteNum).visible = 1 #install: sprite(me.spriteNum).member = member("button_install") myAsset = b[2] myType = 7 sprite(me.spriteNum).visible = 1 #view: sprite(me.spriteNum).member = member("button_view") if b.count > 1 then myAsset = b[2] else myAsset = EMPTY end if myType = 10 sprite(me.spriteNum).visible = 1 #web: sprite(me.spriteNum).member = member("button_web") myAsset = b[2] myType = 11 sprite(me.spriteNum).visible = 1 #save: sprite(me.spriteNum).member = member("button_save") if b.count > 1 then myAsset = b[2] else myAsset = EMPTY end if myType = 12 otherwise: sprite(me.spriteNum).member = member("button_open") myAsset = b[2] myType = 0 sprite(me.spriteNum).visible = 1 end case mem = sprite(me.spriteNum).member.name memOn = mem & "_on" memDn = mem & "_dn" end if else sprite(me.spriteNum).visible = 0 end if else if seed[#mainmenu][menuIndex][#buttonList] <> VOID then if seed[#mainmenu][menuIndex][#buttonList].count < myButton then sprite(me.spriteNum).visible = 0 else b = seed[#mainmenu][menuIndex][#buttonList][myButton] case b[1] of #open: sprite(me.spriteNum).member = member("button_open") if b.count > 1 then myAsset = b[2] else myAsset = EMPTY end if myType = 3 sprite(me.spriteNum).visible = 1 #installbkg: sprite(me.spriteNum).member = member("button_install") myAsset = EMPTY myType = 5 sprite(me.spriteNum).visible = 1 #watch: sprite(me.spriteNum).member = member("button_watch") myAsset = seed[#mainmenu][menuIndex][#submenu][submenuIndex][#videos] myType = 6 sprite(me.spriteNum).visible = 1 #install: sprite(me.spriteNum).member = member("button_install") myAsset = b[2] myType = 7 sprite(me.spriteNum).visible = 1 #view: sprite(me.spriteNum).member = member("button_view") if b.count > 1 then myAsset = b[2] else myAsset = EMPTY end if myType = 10 sprite(me.spriteNum).visible = 1 #web: sprite(me.spriteNum).member = member("button_web") myAsset = b[2] myType = 11 sprite(me.spriteNum).visible = 1 #save: sprite(me.spriteNum).member = member("button_save") if b.count > 1 then myAsset = b[2] else myAsset = EMPTY end if myType = 12 otherwise: sprite(me.spriteNum).member = member("button_open") myAsset = b[2] myType = 0 sprite(me.spriteNum).visible = 1 end case mem = sprite(me.spriteNum).member.name memOn = mem & "_on" memDn = mem & "_dn" end if else sprite(me.spriteNum).visible = 0 end if end if end if end on endSprite me sprite(me.spriteNum).visible = 1 end on mouseLeave me sprite(me.spriteNum).member = member(mem) pass() end on mouseDown me sprite(me.spriteNum).member = member(memDn) updateStage() end on mouseEnter me sprite(me.spriteNum).member = member(memOn) pass() end on mouseUp me if rollover(me.spriteNum) then sprite(me.spriteNum).member = member(memOn) else sprite(me.spriteNum).member = member(mem) end if case myType of 0: open(the pathname & "assets" & fd & parsePath(myAsset)) 5: ca = stripExtension(parsePath(currentAsset)) & ".bmp" if baFileExists(ca) then baSetWallpaper(ca, Tile) end if 6: if QuickTimeVersion() >= 6 then lastTemplate = dTemplate dTemplate = "vid" isReady = 0 go(the frame + 1) else displayMessage("QuickTime Not Installed", "You have chosen to continue using this disc without QuickTime installed. Until you do so, you may not view any video on this disc.") end if 7: if sprite(184).member = member(58) then sprite(184).movieRate = 0 sprite(184).visible = 0 end if open(the pathname & "assets" & fd & parsePath(myAsset)) sprite(197).visible = 1 sprite(198).visible = 1 8: open(the pathname & "assets" & fd & parsePath(myAsset)) 9: open(the pathname & "assets" & fd & parsePath(myAsset)) 3, 10: if isWallpaper then if myAsset = EMPTY then gotoNetPage(stripExtension(parsePath(currentAsset)) & ".bmp") else gotoNetPage(the pathname & "assets" & fd & parsePath(myAsset)) end if else if myAsset = EMPTY then c = parsePath(currentAsset) if c contains ".jpg" then gotoNetPage(c) else if c contains ".pdf" then openDoc(c) end if end if else c = parsePath(myAsset) if c contains ".jpg" then gotoNetPage(the pathname & "assets" & fd & c) else if c contains ".pdf" then openDoc(the pathname & "assets" & fd & c) end if end if end if end if 11: gotoNetPage(parsePath(myAsset)) 12: if myAsset = EMPTY then if isWallpaper then copyFile(stripExtension(parsePath(currentAsset)) & ".bmp") else c = parsePath(currentAsset) if baFolderExists(c) then copyFolder(c) else copyFile(c) end if end if else c = parsePath(the pathname & "assets" & fd & myAsset) if baFolderExists(c) then copyFolder(c) else copyFile(c) end if end if end case end